
Ubuntu 14.04 Change LF UTF-8 Under Specified Directory
Install nkf sudo aptitude install nkf usege nkf -wLu --overwrite *.txt # -w: change to UTF8 # -Lu: change to LF # --overwrite: overwrite file! Exclude .git or and so on files, and specified some extension. find . \( -name "i18n" -o -name ".git" -o -name "jquery*.js" -o -name "jquery*.css" \) -prune -o -type f \( -name "*.txt" -o -name "*.js" -o -name "*.css" -o -name "*.html" -o -name "*.php" \) -print -exec nkf -wLu --overwrite {} \;