The ptar perl script which comes with Archive::Tar shows you how to do this using File::Find. Relevant fragment:
if( $opts->{c} ) { my @files; find( sub { push @files, $File::Find::name; print $File::Find::name.$/ if $verbose }, @ARGV ); Archive::Tar->create_archive( $file, $compress, @files ); exit; }
In reply to Re: tar help
by idsfa
in thread tar help
by snyder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |