GNU bug report logs - #15259
Request fror a feature rather

Previous Next

Package: coreutils;

Reported by: abbas.chunawala <at> slscorp.com

Date: Tue, 3 Sep 2013 15:48:01 UTC

Severity: normal

Tags: notabug, wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 15259 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: abbas.chunawala <at> slscorp.com
Cc: 15259 <at> debbugs.gnu.org
Subject: Re: bug#15259: Request fror a feature rather
Date: Tue, 03 Sep 2013 10:43:58 -0600
[Message part 1 (text/plain, inline)]
On 09/03/2013 12:39 AM, Abbas Chunawala wrote:
> Hi,
> Greetings.
> 
> There should also be a feature in rm which removes all files except the
> mentioned files.
> What do you think ?

I think it is probably a case of feature bloat, as you can already
achieve the same using existing standard tools; for example:

find dir -name filetokeep -o -exec rm {} +

which will remove all files in a hierarchy except those excluded by the
left side of the -o predicate (in this case, preserving the file named
"filetokeep").

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 6 years and 223 days ago.

Previous Next


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