Archive | July, 2009

SED

17 Jul

to produce only thing between two regex’s

cat foo | sed -n '/textarea/,/<\/textarea/p'

Only get from 2nd line to 100th line:

sed -n '2,100p'

Advertisements