The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SCO
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #10 (permalink)  
Old 04-30-2009
kekiku kekiku is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 3
i have a question regarding the use of the 'find' command.... wouldn't i be duplicating some directories in my backup if the parent directory is listed with all its child directories? here is a sample output:

find . -depth
/repod/log/rman_29.log
/repod/log
/repod/huk7kik0_1_1
/repod/i4k7n700_1_1
/repod

so if i pipe this to cpio, i would get the child /repod/log/rman_29.log and then it would be repeated with /repod/log? i would get the childs /repod/huk7kik0_1_1 and /repod/i4k7n700_1_1 and then everything would repeat again with /repo?

is there a way to just get the last depth?