Supression des ^M

Supression des ^M sous UNIX :

# perl -pi -e 's/\r\n/\n/' nom_de_fichier

initiation à SED

Want to use sed(1) to edit a file in place?

Well, to replace every 'e' with an 'o', in a file named 'foo', you can do:

# sed -i.bak s/e/o/g foo

And you'll get a backup of the original in a file named 'foo.bak'.

but if you want no backup:

# sed -i '' s/e/o/g foo

Plus d'articles...

  1. Reinitialiser mot de passe