in reply to How to recursively zip all files insied a directory
This will 'zip' up everything under directory_name into a single archive packagename.tar.gz, while preserving directory structure (assuming you have the GNU version of tar).tar -zcvf packagename.tar.gz path_to_directory
find path1/* path2/* -exec gzip {} \;
... my @paths = qw! /usr/home/blah /usr/home/foo !; system("/usr/bin/find $_/* -exec gzip {} \\;") for @paths; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to recursively zip all files insied a directory
by b10m (Vicar) on Jan 15, 2004 at 11:54 UTC | |
by Roger (Parson) on Jan 15, 2004 at 12:30 UTC |