in reply to command to tar files

Not really sure a) what this has to do with Perl or b) why you'd want to tar up one file, but here's the command.

tar xf /path/to/output/file /path/to/input/file

Typing man path would be a faster way to get this information.

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Replies are listed 'Best First'.
Re: Re: command to tar files
by zigster (Hermit) on Jan 17, 2001 at 16:12 UTC
    It is important to remember that when you tar in this way /path/to/input/file is stored in the tar so when you extract it, it will put it back in that very location. You probs what to ensure that you execute the tar command from the root of the files you want to tar and specify a full pathname to the tar file you are creating rather than the other way around.
    --

    Zigster