L E A R N I N G S
Thursday, March 28, 2013
sed command to replace first occurrence of a pattern in file
sed command to replace first occurrence of a pattern in file :
sed '0,/pattern/s/pattern/replacement/' filename
That's simple and sweet!
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment