Hi, all
suppose I have following txt file "people"
Tim US
Xue CHN
Will US
Tom US
Yong CHN
if I work with a sedscript as following:
then following code works
However, its oneliner version as below doesn't
the error message is:
sed: -e expression #1, char 0: Unmatched `{'
How should I deal with this message?
Thank you
Regards
will
suppose I have following txt file "people"
Tim US
Xue CHN
Will US
Tom US
Yong CHN
if I work with a sedscript as following:
Code:
/US$/ {
s//USA/
w us.origin_1
}
Code:
sed -n -f sedscript people
Code:
sed '/US$/ {s//USA/; w us.origin_1}' people
sed: -e expression #1, char 0: Unmatched `{'
How should I deal with this message?
Thank you
Regards
will