View previous topic :: View next topic |
Author |
Message |
idodesuke Apprentice


Joined: 19 Dec 2005 Posts: 244 Location: France
|
Posted: Wed Nov 16, 2011 5:24 pm Post subject: [LIGNE DE COMMANDE] Manipuler du texte (résolu) |
|
|
la Commande
Code: | grep -E -i '/images/' * |
me permet de rechercher la chaine de caractère "/images/" dans les fichiers du répertoire courant.
mais...
Comment la remplacer sans faire appel à emacs?
Parce que si il y a beaucoup de fichiers, c'est pas génial...
Last edited by idodesuke on Wed Nov 16, 2011 5:31 pm; edited 1 time in total |
|
Back to top |
|
 |
idodesuke Apprentice


Joined: 19 Dec 2005 Posts: 244 Location: France
|
Posted: Wed Nov 16, 2011 5:29 pm Post subject: |
|
|
Code: | sed -i -e "s/images/images.new/g" * |
bon bah j'ai trouvé de suite... |
|
Back to top |
|
 |
truc Advocate


Joined: 25 Jul 2005 Posts: 3199
|
Posted: Thu Nov 17, 2011 10:11 am Post subject: |
|
|
ta réponse ne répond pas vraiment à ta question! Heureusement que tu as réussi tout seul! _________________ The End of the Internet! |
|
Back to top |
|
 |
|