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

# zip all non-7z and non-zip files with 7z in pwd and delete the original
for f in ./*; do
  ext=${f##*.}
  if test "$ext" = zip; then continue; fi;
  if test "$ext" = 7z; then continue; fi;
  7z a -sdel "$f.7z" "$f"
done