areyouready,
My apologies I went and double checked myself on those grep lines and I was completely wrong. Looks like you will likely need to use awk (or perl, in which case the pcgrep should work). Or you could script something similar, awk would be easiest.
Simple option (if your not great at awk like myself)would be to
grep -A 1 "<export"
This would give you a full listing. Not sure how many lines you are going through.
Main Topics
Browse All Topics





by: blacflamePosted on 2009-10-16 at 14:57:26ID: 25593691
Simple way
grep "<export" | grep "point"
or line break with shell escape.
grep "<export(*\n)point"
Might double check my syntax...
PCgrep perl based -
pcregrep -Mi "<title>(.*\n){0,5}</title>" afile.html