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
Subscribe to:
Post Comments (Atom)
UNIX/Linux problem solving blog, Good for beginners and experts. UNIX interview preparation guide. Top Unix interview questions and answers. awk,sed,vi shell,perl solutions of Unix problems.
1 comment:
It was very nice article and it is very useful to Linux learners.We also provide Linux online training
Post a Comment