News for hackers. Stuff that matters.
Re:Pipes and Filters by JetSpiegel on Wednesday September 17, 2014 @05:11AM (#8329191)
You can use <bigfile.txt head | grep | awk
Re:Pipes and Filters by unhammer on Wednesday September 17, 2014 @09:39AM (#8329858)
So if I want to change that to the whole file, I "just" have to Ctrl+A Meta+F Meta+F Meta+D Ctrl+D Ctrl+D RET. That's not really an improvement – especially since it depends on how many dots or similar are in the filename.

Also, that's a Useless Use of head, since grep has the option "-m10"

Re:Pipes and Filters by JetSpiegel on Wednesday September 17, 2014 @02:13PM (#8331450)
grep -m "Stop reading a file after NUM matching lines", while head -10 takes the first 10 lines and searches on them. Different things.
Re:Pipes and Filters by unhammer on Wednesday September 17, 2014 @04:34PM (#8332224)
doh! you're right, I wasn't thinking :-)