This isn't so much a question as a statement... I've been having issues zipping a bunch of bin files named like:
foo blah 1234 (E) [!].bin
blah foo 4321 (U) (Jun 1992) [b1].bin
4321 foo blah (UEJ) [!].bin
...
and trying to simply zip them up was proving annoyingly tricky. Under linux, or anything else with a bash shell and zip, the following works:
CODE
for i in ./*; do
zip -9 -v "$i.zip" "$i";
done
Figured this may help someone who was after doing the same thing, or me when I come to need to do it again ;-)
foo blah 1234 (E) [!].bin
blah foo 4321 (U) (Jun 1992) [b1].bin
4321 foo blah (UEJ) [!].bin
...
and trying to simply zip them up was proving annoyingly tricky. Under linux, or anything else with a bash shell and zip, the following works:
CODE
for i in ./*; do
zip -9 -v "$i.zip" "$i";
done
Figured this may help someone who was after doing the same thing, or me when I come to need to do it again ;-)