grep - bash How to extract first match from n files efficiently -
i have large number of text files containing timestamped data day. each file day. want extract single line each file same time of day. following works quite slow - there faster way?
for f in ngeneric*.txt ;do egrep -m1 "*t1600*" $f ; done >
just grep
should do...
grep -m1 "t1600" ngeneric*.txt > output
Comments
Post a Comment