home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13655 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!nigel.msen.com!caen!destroyer!ncar!hsdndev!marby
  2. From: marby@laura.harvard.edu (Craig Marby)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Recursive Tree Copy (with filter)?
  5. Message-ID: <MARBY.92Nov19211654@laura.harvard.edu>
  6. Date: 20 Nov 92 02:16:54 GMT
  7. References: <1992Nov19.211748.27534@unixland.natick.ma.us>
  8. Sender: usenet@hsdndev.UUCP
  9. Organization: Chemistry Dept., Harvard University
  10. Lines: 31
  11. In-reply-to: trw@unixland.natick.ma.us's message of 19 Nov 92 21:17:48 GMT
  12.  
  13. >>>>> On 19 Nov 92 21:17:48 GMT, trw@unixland.natick.ma.us (Tim Weil) said:
  14.  
  15. Tim> I need a utility that would perform a recursive tree copy but only 
  16. Tim> operates on a selected file set for transfers.  The specific problem
  17. Tim> concerns a complicated source tree with Makefiles embedded at various
  18. Tim> sub-directories throughout the tree.
  19. Tim>  
  20. Tim> What the utility might do is behave like "cp -r" and "grep make *"
  21. Tim> where any file prepended with "make" would be copied along with the
  22. Tim> attached subdirectory.
  23. Tim>  
  24.  
  25. What you need to do is a find/cpio -p. In other words generate your
  26. filter or whatever using find -- if that doesn't quite give you
  27. what you want you can redirect the find to an output file and
  28. then edit that. Once you have your list of files you then send this
  29. on to cpio -p, that is cpio with the "-p" option. See the manual
  30. for details. You may wish to do a mini-experiment first!
  31.  
  32. Hope this helps.
  33.  
  34.     __o         
  35.   _ \<,_       Craig A. Marby    marby@layla.harvard.edu
  36.  (_)/ (_)      
  37. ~~~~~~~~~~
  38. --
  39.  
  40.     __o         
  41.   _ \<,_       Craig A. Marby    marby@layla.harvard.edu
  42.  (_)/ (_)      
  43. ~~~~~~~~~~
  44.