for i in `cat sample1`;do sed -n "/$i/{p;n;p;n;p;n;p;n;p;n;p;n;p;n;G;p;}" sample2 ; done
Showing posts with label print next 7 lines after pattern match using sed. Show all posts
Showing posts with label print next 7 lines after pattern match using sed. Show all posts
Saturday, January 23, 2010
Subscribe to:
Posts (Atom)