wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes Tar a folder excluding pdf's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Tar a folder excluding pdf Watch "Tar a folder excluding pdf New topic
Author

Tar a folder excluding pdf's

Saravanan Mrajan
Greenhorn

Joined: Jun 28, 2009
Posts: 18
Need to tar a folder. excluding the pdf files in that folder.

I konw the tar but how to exclude the pdf files while creating tar.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

tar cvc mytar.tar --exclude='*.pdf' mydir


Customer surveys are for companies who didn't pay proper attention to begin with.
Saravanan Mrajan
Greenhorn

Joined: Jun 28, 2009
Posts: 18
Thanks a lot Tim. i got it already. sorry to post it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tar a folder excluding pdf's
 
Similar Threads
How to gzip more than one files together
Implement JAAS in Struts
Need help to save .tar files in data base
How to add a war file to a tar through build file
JBoss for AIX 5