On Wed, Feb 14, 2007 at 02:52:53PM +, Eric Blake wrote:
>> I'm using tar (GNU tar) 1.16.1 and have an archive with the following
>> entries.
>> Files/report1.html
>> Files/report2.html
>> Files/report3.html
>> Files/report4.html
>> D:/Bkp/sol/
>> D:/Bkp/sol/test1.pl
>> D:/Bkp/sol/test2.pl
>> D
> I'm using tar (GNU tar) 1.16.1 and have an archive with the following entries.
> Files/report1.html
> Files/report2.html
> Files/report3.html
> Files/report4.html
> D:/Bkp/sol/
> D:/Bkp/sol/test1.pl
> D:/Bkp/sol/test2.pl
> D:/Bkp/sol/test3.pl
>
> Whenever, I try to exclude files starting with "D
tar tf test.tar --anchored --exclude="D:/"
temp$ tar tf tartest.tar -P
c:/temp/file1
file2
temp$ tar tf tartest.tar -P --anchored --exclude='/temp'
file2
So, if you really want to exclude your D:/Bkp files, you could enter:
tar tf test.tar --anchored --exclude='/Bkp'
The -P option used on m
3 matches
Mail list logo