Monday, 12 August 2013

How to replace a variable string in a file using sed

How to replace a variable string in a file using sed

The file is
a.txt
the string is
aaabbbccc
the 'bbb' portion of the string changes to anything. which means sed must
look for
aaa*ccc
and replace it with
ooo

No comments:

Post a Comment