Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tar a folder excluding pdf's  RSS feed

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 19267
85
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tar cvc mytar.tar --exclude='*.pdf' mydir
 
Saravanan Mrajan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Tim. i got it already. sorry to post it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!