Hi, --- On Thu, Jul 26, 2012 at 6:24 PM, Balasubramaniam Natarajan <[email protected]> wrote: | I can get the first line by the command | $*grep "MD5 " */reports/report.txt* | If I want the next Network Activity | $*grep "Network Activity" -A5 */reports/report.txt* | | However how can I get to do both of these in the same line so that their | outputs are interleaved ? \--
Learn to read manual pages. $ man grep As stated, multiple search patterns can be given using the "-e" option. I would also encourage you to use a standard file format (xml, yaml, json, for example) for report.txt, so it can be parsed easily. SK -- Shakthi Kannan http://www.shakthimaan.com _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
