Can U pipe filenames to rm???

Wm E. Davidsen Jr davidsen at sixhub.UUCP
Sun Sep 30 13:00:39 AEST 1990


In article <28790001 at col.hp.com> greiner at col.hp.com (Mike Greiner) writes:

| Now I want to pipe the output of this command into rm.  Here's the output:

  I think what you want is the xargs routine, which may not be available
on your system but is on most.

Example:
  find {{stuff here}} -print | xargs rm -f
-- 
bill davidsen - davidsen at sixhub.uucp (uunet!crdgw1!sixhub!davidsen)
    sysop *IX BBS and Public Access UNIX
    moderator of comp.binaries.ibm.pc and 80386 mailing list
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.unix.shell mailing list