0

распаковать несколько архивов zip или rar

for x in *.zip; do unzip -o "$x" -d "${x//\.zip}" ; done
for x in *.rar; do unrar x "$x" ; done

Sources:

  1. How to unzip multiple files (encrypted) in a directory. — The UNIX and Linux Forums
  2. bash replace all matches of regex substring in string