Jan 12, 2004 #1 isileth Technical User Jul 18, 2001 9 US OK, am searching a file for a certain text string - when I find it, I need to output the line it's in, and the following 10 lines? Any help much appreciated.
OK, am searching a file for a certain text string - when I find it, I need to output the line it's in, and the following 10 lines? Any help much appreciated.
Mar 4, 2004 #21 futurelet Programmer Mar 3, 2004 539 US It was not designed to be used on files having more than one "foo". This is: Code: /foo/&&c=10,!c-- This may not do what you want if "foo" is found in one of the trailing 10 lines. Upvote 0 Downvote
It was not designed to be used on files having more than one "foo". This is: Code: /foo/&&c=10,!c-- This may not do what you want if "foo" is found in one of the trailing 10 lines.