S scan macrumors 6502 Original poster Oct 24, 2005 344 0 Feb 6, 2006 #1 how would I pipe head, tail, and grep together to search for something from line 11-17 of a file?
iMeowbot macrumors G3 Aug 30, 2003 8,634 0 Feb 6, 2006 #2 ( head -17 | tail -7 | grep whatever ) < filespec What do I win?
superbovine macrumors 68030 Nov 7, 2003 2,872 0 Feb 6, 2006 #3 iMeowbot said: ( head -17 | tail -7 | grep whatever ) < filespec What do I win? Click to expand... an A on his homework....
iMeowbot said: ( head -17 | tail -7 | grep whatever ) < filespec What do I win? Click to expand... an A on his homework....
iMeowbot macrumors G3 Aug 30, 2003 8,634 0 Feb 6, 2006 #4 superbovine said: an A on his homework.... Click to expand... I'd give that a D for not checking that there are 17 lines in there
superbovine said: an A on his homework.... Click to expand... I'd give that a D for not checking that there are 17 lines in there
superbovine macrumors 68030 Nov 7, 2003 2,872 0 Feb 6, 2006 #5 iMeowbot said: I'd give that a D for not checking that there are 17 lines in there Click to expand... since when does the overworked grad student care about error checking
iMeowbot said: I'd give that a D for not checking that there are 17 lines in there Click to expand... since when does the overworked grad student care about error checking
S scan macrumors 6502 Original poster Oct 24, 2005 344 0 Feb 6, 2006 #6 iMeowbot said: ( head -17 | tail -7 | grep whatever ) < filespec What do I win? Click to expand... damn, i was so close. I just didn't redirect the file. thanks
iMeowbot said: ( head -17 | tail -7 | grep whatever ) < filespec What do I win? Click to expand... damn, i was so close. I just didn't redirect the file. thanks