I remember there is a sed switch i can use to edit and save the file at the same time, but i cannot recall it at all.
so instead of
-> sed 's/A/B/' file > file-tmp
-> mv file-tmp file
what can i do to just let sed edit and save the "file"
I remember there is a sed switch i can use to edit and save the file at the same time, but i cannot recall it at all.
so instead of
-> sed 's/A/B/' file > file-tmp
-> mv file-tmp file
what can i do to just let sed edit and save the "file"
sed -i
?
yappppp!:D:D:D:D:D:D:D:D that is what i am looking for, interesting the manpage does not have it!
Yea, that's weird. Anyway you can remember it as "in place" editing.
As far as I know, only GNU sed supports editing in place.