631 visitas
Replace text in a file using sed
Replace text in a file to a new file
Text
- sed 's/old/new/g' oldfile > newfile
Replace text in the same file
Text
- sed -i 's/old/new/g' file
Enviado por aanton hace 11 months — modificado por última vez hace less than a minute