
hello there !
I just want to know your own way (better ?) to do this :
replace without doing it manually (vi, sed) the string TOTO by TITI in XXX file
my way :
find . -name "XXX" | xargs -t perl -pi.save -e 's/TOTO/TITI/'
or (but with 2 lignes) :
cat XXX | sed 's/TOTO/TITI/g' > XXX.new
cat XXX.new >XXX
in this way i think we keep the permissions...?
thanks !