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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -