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