Bug 6540

Summary: No option to remove a lot of file together
Product: [Retired] Red Hat Linux Reporter: mark
Component: fileutilsAssignee: Cristian Gafton <gafton>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-11-15 19:23:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mark 1999-10-30 15:04:20 UTC
The rm program (as well as many other utilities) is limited
by the number of file it can delete due to the limited
size of the os command line. This prevents a lot of elegant
solutions in high level tools. For instance, I am using
a building tool (make replacement) called "cook" which is
excellent. I work on a project with 2500 source files
(and 2500 objects). I want to be able to just say:
rm "file1.o file2.o ... file2500.o"
but this is impossible and make me sad.
What I did is to write a program which receives the list of
files from stdin (or a file) which is limitless, and call
rm to remove them. I think this should be a feature of rm.
An idea about command line usage could be:
	rm --file file.txt
and the interpretation would be that rm will read the
"file.txt" file and remove all files which are specified
in it... The format of file.txt could be the cause of
a few more options to rm...:)

Regarding redirection of this bug:
Since the GNU people are responsible for "rm" you probably
need to mail this to them (I couldnt find a place in
their site for reporting bugs...)

					Mark.

Comment 1 Preston Brown 1999-11-15 19:23:59 UTC
see the man page for 'xargs'.  It was specifically designed for handling this
sort of case.