*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 16158
    
  21

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