sandy1028 has asked for the wisdom of the Perl Monks concerning the following question:
The tar files doesnot copy to another directory. But from the command line for a single tar file it untars and move the file to another folder Why the tar command doesnot works for a loop@tarfiles=`ls dirname`; foreach $tarfile(@tarfiles){ `tar -xf $tarfile -C ~/path_to_dir`; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tar a files from loop
by GrandFather (Saint) on Mar 05, 2009 at 03:56 UTC | |
by sandy1028 (Sexton) on Mar 05, 2009 at 04:06 UTC | |
|
Re: tar a files from loop
by bichonfrise74 (Vicar) on Mar 05, 2009 at 04:15 UTC | |
|
Re: tar a files from loop
by toolic (Bishop) on Mar 05, 2009 at 14:02 UTC |