newbie: to pipe the result of a program as commandline parameter for another.
Hello. I just checkouted a big program. What I want to do is to remove all CVS/ folders from the hierarchy. There might be other ways to do so (give me a hint?). What I can think of is to run find(1) to find out all CVS folders, and pass them as parameters of rm(1), but I don't know how to do so. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newbie: to pipe the result of a program as commandline parameter for another.
On Sat, Nov 22, 2003 at 09:02:41PM +0800, Zhang Weiwu wrote: Hello. I just checkouted a big program. What I want to do is to remove all CVS/ folders from the hierarchy. There might be other ways to do so (give me a hint?). What I can think of is to run find(1) to find out all CVS folders, and pass them as parameters of rm(1), but I don't know how to do so. find . -name CVS -type d would find all directories named CVS under the current dir. Once you're happy with the directories it finds you could pipe the results to xargs: find . -name CVS -type d | xargs rm -rf -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newbie: to pipe the result of a program as commandline parameter for another.
On Nov 22, 2003, at 8:02 AM, Zhang Weiwu wrote: Hello. I just checkouted a big program. What I want to do is to remove all CVS/ folders from the hierarchy. There might be other ways to do so (give me a hint?). Do a cvs export instead: export Prepare copies of a set of source files for shipment off site. Differs from `cvs checkout' in that no cvs administrative direc- tories are created (and therefore `cvs commit' cannot be exe- cuted from a directory prepared with `cvs export'), and a sym- bolic tag must be specified. (Does not change repository; cre- ates directory similar to working directories). -- -Chuck ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]