Je galère aussi...

Script Shell : Rechercher/remplacer récursif

Posté par Vince dans bash

Il y’a peu, j’ai galéré pour faire un rechercher/remplacer récursif.
Je vous donne donc ici la solution pour ne pas galérer à votre tour (je suis sympa quand même) lol!
Donc voici le code:

Script shell
find /mon/rép -exec sed -i "s/chaine_cherchée/chaine_remplacée/g" {} \;
Tags :bash, rechercher, remplacer

Faites tourner :
These icons link to social bookmarking sites where readers can share […]

Faites tourner : These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • ThisNext
  • blogmarks
  • Scoopeo

5 Commentaires

Sun rachète Mysql

Posté par Sword dans economie

Faites tourner : These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • ThisNext
  • blogmarks
  • Scoopeo

Aucun Commentaire

PC à 100 dollars avec Windows et Linux ?

Posté par Sword dans Actualité

Faites tourner : These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • ThisNext
  • blogmarks
  • Scoopeo

2 Commentaires

Le materiel Open Source

Posté par Vince dans Actualité

Faites tourner : These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • ThisNext
  • blogmarks
  • Scoopeo

1 Commentaire