Subject: Re: multi find with different file outputs
To: Jeremy C. Reed <firstname.lastname@example.org>
From: SODA Noriyuki <email@example.com>
Date: 09/25/2005 15:34:22
>>>>> On Sat, 24 Sep 2005 23:15:39 -0700 (PDT),
"Jeremy C. Reed" <firstname.lastname@example.org> said:
> I'd like to patch up find(1) to add option to have it output to different
> file outputs.
> I have a patch for my idea #3 below.
How about using "GNU find"-compatible options?
i.e. -fprint and -fprint0?
The option -fprint and -fprint0 take a filename as its parameter,
instead of file descriptor number.
> 3) Another idea could be:
> find / \( -name "*.core" -output 5 \) -o \( -user joe -output 6 \) \
> 5>core.dumps 6>joes.files
This could be written as follows in GNU find:
find / \( -name "*.core" -fprint /dev/fd/5 \) -o \
\( -user joe -fprint /dev/fd/6 \) \