Created
December 5, 2016 14:50
-
-
Save framingeinstein/6411126a4a972e5e08d93fc233ceb3ef to your computer and use it in GitHub Desktop.
ZIP All cvs files in current working directory as individual zip files and remove cvs files
This file contains 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
for i in *.csv; do zip -r $(echo "$i" | tr '.csv' '.zip') "$i"; rm -rf "$i"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment