Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

scan

macrumors 6502
Original poster
Oct 24, 2005
344
0
how would I pipe head, tail, and grep together to search for something from line 11-17 of a file?
 
iMeowbot said:
( head -17 | tail -7 | grep whatever ) < filespec

What do I win?

damn, i was so close. I just didn't redirect the file. thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.