[gull] Remplacer une châine de caratères dans plusieurs fichiers (sed)
Daniel Cordey
dc at mjt.ch
Tue Oct 10 15:56:47 CEST 2006
On Tuesday 10 October 2006 15:47, Nicolas Borboën wrote:
> s/Réponses/Solutions/g
recode UTF8..latin-1
Soit :
str="$(echo 's/Réponses/Solutions/g' | recode UTF8..latin-1)"
find ./* -type f -exec sed -i "${str}" {} \;
Il y a d'autres manieres, mais je trouve celle-ci marrante :-)
dc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum.linux-gull.ch/pipermail/gull/attachments/20061010/73f98109/attachment.htm>
More information about the gull
mailing list