Sysadmin's Garden of Eden Docs

Version 1337.42.0

Quick Commands

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

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

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

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

find -name '*.7z' -exec sh -c 'mkdir "${1%.*}"; 7z e "$1" -o"${1%.*}"' _ {} \;
Last updated on 16 May 2018 / Published on 31 May 2018