On Wed, Oct 13, 2004 at 07:43:33PM -0700, Joshua Daniel Franklin wrote:
>On Tue, 12 Oct 2004 12:04:11 -0600, Mark Paulus <[EMAIL PROTECTED]> wrote:
>> Thanks. I was not aware of the -print0 option. This is
>> what I love about *n*x: Always something new to learn,
>> or another way to find a solu
On Tue, 12 Oct 2004 12:04:11 -0600, Mark Paulus <[EMAIL PROTECTED]> wrote:
> Thanks. I was not aware of the -print0 option. This is
> what I love about *n*x: Always something new to learn,
> or another way to find a solution.
What! Do NOT use -print0! It will null-terminate EVERY LINE!
--
Unsu
Mark Paulus wrote:
>
> Another issue I've run into with find, but typically when I pipe
> it to xargs is that directories/files with spaces in the names cause
> all kind of disruption.
Add "-print0" to your find arguments and "-0" to your xargs arguments
and that problem will disappear.
Brian
-
Thanks. I was not aware of the -print0 option. This is
what I love about *n*x: Always something new to learn,
or another way to find a solution.
On Tue, 12 Oct 2004 13:14:12 -0400, Christopher Faylor wrote:
>On Tue, Oct 12, 2004 at 11:00:35AM -0600, Mark Paulus wrote:
>>Another issue I've r
On Tue, 12 Oct 2004, Mark Paulus wrote:
> Another issue I've run into with find, but typically when I pipe
> it to xargs is that directories/files with spaces in the names cause
> all kind of disruption.
Not related to this thread, and actually not Cygwin-specific. Use "find
... -print0 | xargs
On Tue, Oct 12, 2004 at 11:00:35AM -0600, Mark Paulus wrote:
>Another issue I've run into with find, but typically when I pipe
>it to xargs is that directories/files with spaces in the names cause
>all kind of disruption.
So use "find -print0 | xargs -0".
cgf
--
Unsubscribe info: http://cyg
Another issue I've run into with find, but typically when I pipe
it to xargs is that directories/files with spaces in the names cause
all kind of disruption.
On Tue, 12 Oct 2004 12:25:15 -0400 (EDT), Igor Pechtchanski wrote:
>On Tue, 12 Oct 2004, Daniel Miller wrote:
>> On linux systems, I typic
> On Tue, 12 Oct 2004, Daniel Miller wrote:
>
> > On linux systems, I typically to global searches with a command such as:
> >
> > find . -name "*.[ch]*" -exec grep -H -n stuff {} \;
> >
> > and this works nicely. However, when I try the same command under
Cygwin
> > (from a 4NT prompt, not Ba
On Tue, 12 Oct 2004, Daniel Miller wrote:
> On linux systems, I typically to global searches with a command such as:
>
> find . -name "*.[ch]*" -exec grep -H -n stuff {} \;
>
> and this works nicely. However, when I try the same command under Cygwin
> (from a 4NT prompt, not Bash), I get "f
On linux systems, I typically to global searches with a command such as:
find . -name "*.[ch]*" -exec grep -H -n stuff {} \;
and this works nicely. However, when I try the same command under Cygwin
(from a 4NT prompt, not Bash), I get "find: missing argument to '-exec' ".
I tried a vari
10 matches
Mail list logo