Linker IT Software
Google
Web www.oraxcel.com
menubar-top-links menubar-top-rechts
Home Help Search Login
Welcome, Guest. Please Login.
SQL*XL: Database to Excel bridge litLIB: Excel power functions pack ExcelLock: Locking and securing your valuable Excel spreadsheets encOffice: Protect your Excel file easy and safe encOffice: Protect your Excel file easy and safe
Pages: 1
Create tar archive with selected files only (Read 17267 times)
Gerrit-Jan Linker
YaBB Administrator
*****




Posts: 75
Create tar archive with selected files only
21.08.08 at 09:27:25
 
Create tar archive with selected files only
 
To create a tar archive that only contains files who's name is matched by a certain pattern the following technique can be used.
 
First list all the files you want to archive using the find command:
find . -name *.xml -print
 
This command searches all xml files (*.xml) from the current directory downwards.  
 
Next, create a file list by sending the output into a file:
find . -name *.xml -print > filelist.txt
 
Next, tar all the files listed in the file list.
tar -cvf mytarfile.tar -T filelist.txt
 
See also:
Basic tar commands
http://www.oraxcel.com/cgi-bin/yabb2/YaBB.pl?num=1217859190
Back to top
 
« Last Edit: 31.08.08 at 21:03:09 by Gerrit-Jan Linker »  

Gerrit-Jan Linker
Linker IT Software
Email WWW Gerrit-Jan Linker   IP Logged
Pages: 1