I have a file which contain following lines: /logs/tc0001/tomcat/tomcat7.1/conf/catalina.properties:app.env.server.name = demo.example.com /logs/tc0001/tomcat/tomcat7.2/conf/catalina.properties:app.env.server.name = quest.example.com /logs/tc0001/tomcat/tomcat7.5/conf/catalina.properties:app.env.server.name = www.example.com In above output I want to extract 3 fields (Number 2, 4...
  • May 22, 2022
  • 0 Comments
In a Bash script, I want to pick out N random lines from input file and output to another file. How can this be done? 6 Answers 6
  • May 15, 2022
  • 0 Comments