Skip to content

Instantly share code, notes, and snippets.

@mkanenobu
Last active April 7, 2017 06:16
Show Gist options
  • Save mkanenobu/923b1c5f5e4788216cd53b3404b5e20e to your computer and use it in GitHub Desktop.
Save mkanenobu/923b1c5f5e4788216cd53b3404b5e20e to your computer and use it in GitHub Desktop.
Extract multiple archive file contents with unar command
#!/bin/bash
### unarchve multiple files with unar
set -Cue
if test $# -gt 0; then
for i in "$@"; do
unar $i
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment