geeksinthetown
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment