Skip to content

Instantly share code, notes, and snippets.

@akaak
Created October 29, 2015 18:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akaak/922bc7a2070317fa2dd7 to your computer and use it in GitHub Desktop.
Save akaak/922bc7a2070317fa2dd7 to your computer and use it in GitHub Desktop.
Go through far files in a directory and unrar them.
# Go through all files with extension .rar.
# create a folder with DIR_FileName
# Unrar each rar file and keep them in the respective directory
# install unrar using "brew" on mac
#
for filename in *.rar;
do echo "put ${filename}";
mkdir RAR_${filename}
unrar ${filename} RAR_${filename}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment