Re: Hashing and directories

From: Oystein Viggen (oysteivi@tihlde.org)
Date: Fri Mar 02 2001 - 07:01:09 EST


Pavel Machek wrote:

> xargs is very ugly. I want to rm 12*. Just plain "rm 12*". *Not* "find
> . -name "12*" | xargs rm, which has terrible issues with files names
>
> "xyzzy"
> "bla"
> "xyzzy bla"
> "12 xyzzy bla"

These you work around using the smarter, \0 terminated, version:

find . -name "12*" -print0 | xargs -0 rm

"This version would also deal with
 this filename ;)"

Oystein

-- 
ssh -c rot13 otherhost
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:11 EST