man bash, look for, 'for'.%#b_o_b said:I'd like to know the easiest way to compress multiple files without adding the individual files into one big zip file. So:
file1.xyz
file2.dfs
file3.ddd
should become
file1.zip
file2.zip
file3.zip
I tried something like zip *.*, but that didn't work.
Simple enough:b_o_b said:Thanks nice bash script, but I don't think I was clear enough in explaining what I need. Not only the extension can be different, but the naming is also not consistent.
Example.
temp.sh
picture.jpg
etc.c
should become
temp.zip
picture.zip
etc.zip
Hope it will not be too hard to adjust the script.
btw to make it even more difficult, a name could also be something like temp.bin.sh.jpg and should then become temp.bin.sh.zip
Aye, Linux is not for everybody.Squidge said:Run Winrar or Total Commander under Wine
You sure this is linux?b_o_b said:Works great!
Only problem is zip doesn't seem to like spaces in filenames and those files are not zipped, is there a solution for this as well?
Piece of cake, just have to quote things a bit, sometimes easier to:b_o_b said:Never had a bsod
So yep, pretty sure. I am using Ubuntu 7.10
This is the result of a test file I tried to zip:
the file is 'test test test.py'
zip warning: name not matched: test
zip warning: name not matched: test.zip
zip warning: name not matched: test
zip warning: name not matched: test
zip warning: name not matched: test.py
zip error: Nothing to do! (test.zip)
Senor Quack said:I've been playing with a new utility I found, atool:
http://www.nongnu.org/atool/
The script of Sphinxter did the job very well, but this seems to be a nice little application. Thanks, certainly will have a go at this.