say i have this line in file
my_id some_pattern my_password
want to change it to
my_new_id some_pattern my_new_password
how should i do it ?
thanks !
i*e 发帖数: 352
2
sed 's/my_/my_new_/g'
如何
w*s 发帖数: 7227
3
didn't say it clearly
my_id some_pattern my_password
==>
new_name some_pattern another_passcode
there's no relationship between the 1st word and 2nd word, while some_
pattern is in the middle.