[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Fwd: Re: Rename directory]

From: Matt Doar
Subject: RE: [Fwd: Re: Rename directory]
Date: Mon, 12 Dec 2005 13:50:13 -0800

Good point. The specification formerly known as POSIX suggests a

"If xargs is used to bundle output of commands like find dir -print or
ls into commands to be executed, unexpected results are likely if any
filenames contain any <blank>s or <newline>s. This can be fixed by using
find to call a script that converts each file found into a quoted string
that is then piped to xargs."


-----Original Message-----
From: Larry Jones [mailto:address@hidden 
Sent: Monday, December 12, 2005 1:37 PM
To: Matt Doar
Cc: Todd Denniston; Jim Hyslop; address@hidden
Subject: Re: [Fwd: Re: Rename directory]

Matt Doar writes:
> find and xargs actually works fine with files and directories with
> spaces in them. 
> You just have to use find -print0 | xargs -0 

Those are non-standard GNU extensions.

-Larry Jones

It's hard to be religious when certain people are never
incinerated by bolts of lightning. -- Calvin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]