Last active
March 18, 2016 17:55
-
-
Save danielef/4ae70d676553ced036d2 to your computer and use it in GitHub Desktop.
UTF8 convesion of all CSV files in a directory
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 characters
#!/bin/bash | |
for i in $( ls *.csv ); do iconv -f ISO-8859-1 -t UTF-8 $i > ${i:0:$((${#i}-3))}utf8.csv; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment