Advertisement
fant0men

Repack zips as 7z (bash loop)

Mar 13th, 2022
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. for zip in *.zip; do bn="${zip%.zip}"; mkdir "$bn"; cd "$bn"; arch_unpack ../"${zip}" && rm ../"${zip}"; cd ..; arch_pack "${bn}.7z" "$bn" && rm -rf "$bn"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement