The following command
sed -i '.original' 's/old_link/new_link/g' *create 2 backup files like:
- File1.txt.original
- File2.cfg.original
sed -i '' 's/old_link/new_link/g' *and with find :
find /paht/to/directory -exec sed -i '' 's/old_link/new_link/g' {} \;Enjoy!
Aucun commentaire:
Enregistrer un commentaire