Created
May 31, 2018 19:21
-
-
Save jonaswebdev/bcd8784d1aabe4136807bdb03623051f to your computer and use it in GitHub Desktop.
Revisions
-
jonaswebdev created this gist
May 31, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/sh for file in $(find . -name "*.php" -type f) do iconv -f WINDOWS-1252 -t UTF-8 "$file" > "$file".utf8 && mv "$file".utf8 "$file" && echo "Success: $file" done