scripts/7z2zip

13 lines
201 B
Plaintext
Raw Normal View History

2022-12-26 14:20:37 +01:00
#!/bin/sh
for i in *.7z
do
tmpdir=$( basename "${i}" .7z )
mkdir "${tmpdir}" && cd "${tmpdir}"
7z x "../${i}"
zip -r "../${tmpdir}.zip" * .[^.]*
cd ..
rm -rf "${tmpdir}"
rm "${i}"
done