Op donderdag 18 september 2003 15:03, schreef The Purple Tiger:
grep -i "table tag stuff goes here"
to get the first line, without case mattering [which isn't essential as I think they are all exactly the same, but just in case...]. I can even: grep -iA 10 "table tag stuff goes here"
to get the 10 lines of output including the matching line.
I can use -B instead to get the 10 lines preceding the table tag at the end, if it is unique [which the closing tag isn't].
Anyone have any good 1 or 2 liners that would help me out here? Or maybe something a bit longer :)
Get cgrep which has the option -w and +w. This allows you to search for a window, which is what you want. cgrep -w "</table>" "your searchstr hear" <your files> You can get using apt or directory from: ftp://ftp.gwdg.de/pub/linux/suse/apt/SuSE/8.2-i386/RPMS.extra -- Richard Bos Without a home the journey is endless