Sunday, August 14, 2011

Print one line before pattern match using sed in UNIX.

sed -n -e '/manu/{x;p;x;p;}' -e h test.txt



No comments:

Post a Comment