aboutsummaryrefslogtreecommitdiff
path: root/misc/bin/unzipall.sh
blob: 2d654f0f85a7644af3d1e4c048023511c931fc82 (plain) (blame)
1
2
3
4
5
6
7
8
#/bin/bash

# unzip all zip/7z files with 7z in pwd
for f in ./*; do
  ext=${f##*.}
  if test "$ext" = zip; then 7z e "$f"; fi;
  if test "$ext" = 7z; then 7z e "$f"; fi;
done