Bug 6540 - No option to remove a lot of file together
Summary: No option to remove a lot of file together
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: fileutils
Version: 6.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-10-30 15:04 UTC by mark
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-11-15 19:23:26 UTC

Attachments (Terms of Use)

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...)


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.

Note You need to log in before you can comment on or make changes to this bug.