|
|
|
|
|
by rdtsc
6007 days ago
|
|
I don't see any use of the 'in-place' -i option. My most useful one-liner: sed -i "s/pat/rep/g" file
It means replace in-place all matches of pat with rep in file.To make a backup of old file use -i.bak instead of -i where .bak would be the suffix of the backup file. |
|
I have heard that it's GNU sed option only. (But can't currently say if it's 100% true.)