How to zip several files to several zip with one command?
Assumed I have following files:
test1.txt test2.txt What I want is I want to zip these files with one command so it looks after that: test1.txt.zip test2.txt.zip |
Code:
for filename in *; do zip $filename; done You might also be able to do: Code:
zip * |
Quote:
|
Type it into a terminal.
Evo2. |
I solved the problem. It's easy.
gzip test* I got: test1.txt.gz test2.txt.gz That's what I want. |
All times are GMT -5. The time now is 12:44 AM. |