Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This bash script is tested with gygwin on Windows 10
- #
- # This script will take your Eclipse (or any windows-1251 encoded files) and will make them
- # ready for import into IntelliJ.
- #
- # If your coming from Eclipse here's a little more input:
- # https://z0ltan.wordpress.com/2011/12/25/changing-the-encoding-in-eclipse-to-utf-8-howto/
- # https://bugs.eclipse.org/bugs/show_bug.cgi?id=108668
- #
- # IMPORTANT: use the command
- # sed -i 's/\r$//' FILENAME
- # to make your notepad file linux compatible (set line endings properly)
- #
- find ./ -name *.java -type f -print0|
- while read -d '' -r file
- do
- echo " $file"
- mv "$file" "$file".tmp
- iconv -f windows-1251 -t utf-8 "$file".tmp > "$file"
- rm "$file".tmp;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement