GNU bug report logs - #8079
rm command problem/suggestion

Previous Next

Package: coreutils;

Reported by: Luca Daniel <lucadaniel84 <at> gmail.com>

Date: Sat, 19 Feb 2011 01:36:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mike Frysinger <vapier <at> gentoo.org>
To: bug-coreutils <at> gnu.org
Cc: Luca Daniel <lucadaniel84 <at> gmail.com>, 8079 <at> debbugs.gnu.org
Subject: bug#8079: rm command problem/suggestion
Date: Fri, 18 Feb 2011 22:18:30 -0500
[Message part 1 (text/plain, inline)]
On Friday, February 18, 2011 20:20:24 Luca Daniel wrote:
> 1) The problem: I can't find an easy way to remove a type of file through
> all sub-directories with GNU tool "rm" (remove). There is not an option to
> search through all sub-folders , only in the current working directory.
> Back when I used windows this was easy with the command : del /s *.pdf   .
> 2) The suggestion : please make an option for the "rm" command to look in
> sub-directories so it can be easier to use and increase functionality . I
> asked some people about this problem I have and the answer I got was not
> pretty in the sense that it was not a pretty command  =)  . I can't
> remember what is was because it was complicated (mixed with locate or
> find) and this is the problem ... it should be simple . So please give
> this a thought :) . I am an exclusive GNU/Linux user and all I miss from
> windoze is the simplicity of a simple command or switch .
> I found this e-mail in the man pages so I hope a don't bother anyone with
> my message as for this is not a bug, only a feature that I wish to see
> implemented sometime in the future.
> If there is a way to do it with only "rm" or a simple command and I missed
> it please reply , I would be grateful .

sorry, but this is out of scope for `rm`.  what you want to do is trivial 
already though:
	find -name '*.pdf' -delete
-mike
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 14 years and 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.