文字列一括置換
( diary )#!/bin/bash #find . -type f -name "*.html" -exec sed 's/Shift_JIS/UTF-8/g' {} \; for FILE in $*; do cp $FILE $FILE.bak; #sed -e "s/Shift_JIS/UTF-8/g" $FILE.bak > $FILE; sed -e "s/EUC-JP/UTF-8/g" $FILE.bak > $FILE; rm $FILE.bak echo "end "$FILE done