Can U pipe filenames to rm???
Matthew Farwell
dylan at ibmpcug.co.uk
Sat Sep 29 11:10:52 AEST 1990
In article <28790001 at col.hp.com> greiner at col.hp.com (Mike Greiner) writes:
>
> Piping filenames to the rm command???
>There may be a pretty simple solution to this, but I haven't found it. I'm
>considering using a for-loop that parses each line as the loop counter,
>but don't know if that's the best approach...appreciate any suggestions!
See xargs. (if you have it on your system.)
Example of how it works:
find / -name 'core' -print | xargs rm
Dylan.
--
Matthew J Farwell | Email: dylan at ibmpcug.co.uk
The IBM PC User Group, PO Box 360,| ...!uunet!ukc!ibmpcug!dylan
Harrow HA1 4LQ England | CONNECT - Usenet Access in the UK!!
Phone: +44 81-863-1191 | Sun? Don't they make coffee machines?
More information about the Comp.unix.shell
mailing list