Quick Commands


Extract all ‘*.zip’ files into a directory named after the zip’s filename

1
find -name '*.zip' -exec sh -c 'unzip -d "${1%.*}" "$1"' _ {} \;

Extract all ‘*.rar’ files into a directry named after the rar’s filename

1
find -name '*.rar' -exec sh -c 'mkdir "${1%.*}"; unrar e "$1" "${1%.*}"' _ {} \;

Extract all ‘*.7z’ files into a directry named after the rar’s filename

1
find -name '*.7z' -exec sh -c 'mkdir "${1%.*}"; 7z e "$1" -o"${1%.*}"' _ {} \;