for i in *.rar
do
  mkdir "${i/.rar}"
  cd "${i/.rar}"
  unrar e "../$i"
  cd ..
done

Source : Unrar Multiple Files with Command | Unix Linux Forums | UNIX for Dummies Questions & Answers

Written by Fred

Voici quelques renseignements biographiques

Laisser un commentaire