Skip to content

Instantly share code, notes, and snippets.

@danielef
Last active March 18, 2016 17:55
Show Gist options
  • Save danielef/4ae70d676553ced036d2 to your computer and use it in GitHub Desktop.
Save danielef/4ae70d676553ced036d2 to your computer and use it in GitHub Desktop.
UTF8 convesion of all CSV files in a directory
#!/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