info:replace.sh

#! /bin/sh
# [[replace.sh]] changer des string dans plusieurs fichiers
# filename: replaceallme: replaceall
find . -type f -name '*.htm*' -print | while read i
do
sed 's|^hello|hello world|g' $i > $i.tmp && mv $i.tmp $i
done
  • info/replace.sh.txt
  • Dernière modification : 2023/03/13 14:24
  • de radeff