for FILE in `grep -l TARGET_KEYWORD *`; do cp $FILE $FILE.bak; sed -e "s/TARGET_KEYWORD/REPLACE_KEYWORD/g" $FILE.bak > $FILE; done grepã§ãã¾ãhitããªãã¨ãããæ¡å¼µåã«æ¡ä»¶ã追å ãããã¨ãã«ã¯ã for FILE in `find . -type f -name "*.txt" -exec grep -l TARGET_KEYWORD \{\} \;` ; do perl -p -i -e 's/TARGET_KEYWORD/REPLACE_KEYWORD/g' $FILE; done
{{#tags}}- {{label}}
{{/tags}}