Skip to content

Instantly share code, notes, and snippets.

@angusdev
Created November 20, 2015 08:20
Show Gist options
  • Select an option

  • Save angusdev/654def50af5de485ca09 to your computer and use it in GitHub Desktop.

Select an option

Save angusdev/654def50af5de485ca09 to your computer and use it in GitHub Desktop.
Bash command line to zip each file separately
for i in *.log; do zip "${i%/}.zip" "$i"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment