Printing the context of a matching line in grep
You can use grep to print context of matching lines as follows
ggrep -A 4 -B 5 -f uniq.txt outapr.* > qasim.txt
this will print 4 lines above matching line and 5 lines below matching line.
Hello World. This is my First of First Blog. Here I will try to write things related to what I learn, Since I am kinda obsessed with Technology’s lineage. I, being a Java professional, love Java profoundly and so tried to make a blog that will help you and me of course to be in touch with new happenings in the field of technology. I may soon start a discussion forum based on Java, for that we need to wait a while, after all , not always, good things are FREE….
You can use grep to print context of matching lines as follows
ggrep -A 4 -B 5 -f uniq.txt outapr.* > qasim.txt
this will print 4 lines above matching line and 5 lines below matching line.
Posted by Unknown at 11:37 AM
0 comments:
Post a Comment