[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Tar on Windows XP
From: |
Gadrin |
Subject: |
Re: GNU Tar on Windows XP |
Date: |
Sun, 2 Mar 2008 06:59:44 -0800 (PST) |
User-agent: |
G2/1.0 |
Hi, thanks for responding.
I was going off of
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1204469251779+28353475&threadId=1178036
The difference being the "." (dot) to match everything. However in gnu
tar, I'm able to use a single directory when I type in the
command line as I mentioned
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
J:\Temp Folders\wbtTemp>tar -c -f Top.tar Top
J:\Temp Folders\wbtTemp>tar -t -v -f Top.tar
drwsrwsrwx user/group 0 2008-02-29 21:16 Top/
drwsrwsrwx user/group 0 2008-02-29 21:16 Top/Middle/
drwsrwsrwx user/group 0 2008-02-29 21:16 Top/Middle/Bottom/
J:\Temp Folders\wbtTemp>
It creates the archive just fine, when I reference only "Top" as the
file or input argument.
However the problem is that gnu tar won't take the piped arguments
from the find command
to build a similar archive. I want to be able to "do it on the fly"
meaning I don't have to build
an empty dir structure then build the archive.
In the meantime I've found a alternative method, which isn't so bad...
(Just substitue Writing for Top as a folder in the following)
J:\Temp Folders\wbtTemp>xcopy c:\writing "J:\Temp Folders\wbtTemp
\writing\" /t /e :<-- creates an empty/temporary structure
J:\Temp Folders\wbtTemp>tar -c -f Writing.tar writing '<--
creates an archive of the dir structure
J:\Temp Folders\wbtTemp>tar -t -v -f Writing.tar ;<---
shows all folders
J:\Temp Folders\wbtTemp>rd /q /s writing ;<---
removes the blank/temporary structure.
I was hoping there was a way to pipe the folder names to tar, but so
far no joy.
Jay
- Re: GNU Tar on Windows XP, (continued)
- Message not available
- Re: GNU Tar on Windows XP, Gadrin, 2008/03/02
- Re: GNU Tar on Windows XP, Bob Proulx, 2008/03/02
- Message not available
- Re: GNU Tar on Windows XP, Gadrin, 2008/03/02
- Re: GNU Tar on Windows XP, Gadrin, 2008/03/02
- Re: GNU Tar on Windows XP, Gadrin, 2008/03/03
- Re: GNU Tar on Windows XP, Bob Proulx, 2008/03/03
- Re: GNU Tar on Windows XP, Paul Jarc, 2008/03/03
- Message not available
- Re: GNU Tar on Windows XP, Gadrin, 2008/03/03
- Re: GNU Tar on Windows XP, Gadrin, 2008/03/08
- Re: GNU Tar on Windows XP, Mark Blain, 2008/03/08
- Message not available
- Re: GNU Tar on Windows XP,
Gadrin <=