3 # $Header: findtar,v 2.0 88/06/05 00:16:49 root Exp $
5 # findtar takes find-style arguments and spits out a tarfile on stdout.
6 # It won't work unless your find supports -ls and your tar the I flag.
8 $args = join(' ',@ARGV);
9 open(find,"/usr/bin/find $args -ls |") || die "Can't run find for you.";
11 open(tar,"| /bin/tar cIf - -") || die "Can't run tar for you.";
15 if ($x[2] =~ /^d/) { print tar '-d ';}
16 print tar $x[10],"\n";