Skip to content

Instantly share code, notes, and snippets.

@stmswitcher
Created December 21, 2015 16:12
Show Gist options
  • Save stmswitcher/352b54ba58616514838a to your computer and use it in GitHub Desktop.
Save stmswitcher/352b54ba58616514838a to your computer and use it in GitHub Desktop.
shell/bash zip multiple files specified by extension
#!/bin/bash
ls *.jpg *.png | zip -r archive.zip -@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment