Search Results

Search: Posts Made By: zer0
3,446
Posted By zer0
grep -A switch not working correctly with -m
egrep -A 7 -m 2 -h 'Date:|Time:' *.html

this is showing only 2 line after the context of the 2nd found match. Is this a bug in grep?

egrep -A 7 -m 2 -h 'Time:' *.html - this works...
7,030
Posted By zer0
grep content of files sorted by time stamp
egrep Date: *.html > out.htm

I would like to grep the match as sorted by time stamp of the html files. how do I do that?
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy