The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-25-2007
venu_nbk venu_nbk is offline
Registered User
 

Join Date: Jul 2006
Posts: 32
find command with prune help

I have a directory named https-abcd
Under that I have some directories, files and links.
One of those directories is with name logs and the logs directory has lot of files in it.
I need to tar the whole https-abcd directory excluding the logs directory only, I should get all the links, files and directories in the tar.

I am trying this command

pwd
/fs1/links/https-abcd

find . \( ! -name "logs" \) -type f -exec cp {} /destination/directory \;

But this is not working for the copy atleast. Could any one help me out please
Reply With Quote
Remove advertisements
!!
Forum Sponsor