Re: 2.1.131: some quality thoughts

Neil Conway (nconway.list@ukaea.org.uk)
Thu, 17 Dec 1998 23:11:34 +0000


George Bonser wrote:
>
> On Thu, 17 Dec 1998, Neil Conway wrote:
>
> > Em, that's a bit lame. "rm -f filename" won't remove a directory, and
> > if you type "rm -rf <xxx>" then you deserve all you get.
> >
> > N
>
> rm 'find . | grep core' would not remove the directory but would remove
> anything in it.

Quite true (assuming you meant back-quotes ;-)). I've never considered
doing it that way... Too damn dangerous. Surely it's not too much grief
to do "find . -type f -name core" instead? The way you are doing it,
even files called (e.g.) "netcore.c" would be vaped.

Neil

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/