help-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[Help-tar] moving folders from a tar


From: ERSEK Laszlo
Subject: Re: Re[Help-tar] moving folders from a tar
Date: Wed, 25 Nov 2009 21:36:00 +0100 (CET)

On Mon, 23 Nov 2009, Jessie Grenfell wrote:

I'm creating a tar file (with a VBA script, but that shouldn't matter). The
command used to generate the file is below. The problem is, the tar file
includes the full path of the files that were included in the file. I need
to either create it or modify it afterwards so the resulting tar file
includes just the files in the last folder (8314048612111209). I realize
this is probably simple, but my attempts to add in the strip-components
option have resulted in syntax errors. Can anyone help with the correct
command for this?

C:\Progra~1\GnuWin32\bin\bsdtar -cf
L:\HRA-LIDS\BatchFiles\2009-11-12\8314048612111209.tar
L:\HRA-LIDS\BatchFiles\2009-11-12\8314048612111209

chdir to L:\HRA-LIDS\BatchFiles\2009-11-12 first, then

tar -c -f 8314048612111209.tar 8314048612111209

With GNU tar, you may want to try the -C option as well.

lacos




reply via email to

[Prev in Thread] Current Thread [Next in Thread]