Skip to content

Instantly share code, notes, and snippets.

@achavez
Created October 8, 2015 14:14
Show Gist options
  • Save achavez/21384f6c7c3be131d77f to your computer and use it in GitHub Desktop.
Save achavez/21384f6c7c3be131d77f to your computer and use it in GitHub Desktop.
Convert a folder of Excel files to CSVs
#!/usr/bin/env bash
which xlsx2csv || pip install xlsx2csv
for file in *.xlsx
do
echo "Converting $file"
xlsx2csv --ignoreempty --date="%Y-%m-%d" "$file" "$file.csv"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment