Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[LIGNE DE COMMANDE] Manipuler du texte (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
idodesuke
Apprentice
Apprentice


Joined: 19 Dec 2005
Posts: 244
Location: France

PostPosted: Wed Nov 16, 2011 5:24 pm    Post subject: [LIGNE DE COMMANDE] Manipuler du texte (résolu) Reply with quote

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
View user's profile Send private message
idodesuke
Apprentice
Apprentice


Joined: 19 Dec 2005
Posts: 244
Location: France

PostPosted: Wed Nov 16, 2011 5:29 pm    Post subject: Reply with quote

Code:
sed -i -e "s/images/images.new/g" *


bon bah j'ai trouvé de suite...
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Thu Nov 17, 2011 10:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum