Jan 12, 2004 #1 isileth Technical User Joined Jul 18, 2001 Messages 9 Location 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 Joined Mar 3, 2004 Messages 539 Location 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.