From: Grant on
On Sun, 8 Aug 2010 05:05:03 -0700, William Hunt <wjh(a)prv8.net> wrote:

>On Sun, 8 Aug 2010, Grant wrote:
>> On Sun, 8 Aug 2010 03:03:34 +0000 (UTC), no.top.post(a)gmail.com wrote:
>>
>[...]
>> >and then what's the utility to:
>> ><list the common lines of: fishFile, dogFile, katFile> ??
>>
>> If you want lines that contain all the names just run grep in series
>> to AND them, rather than the examples above which OR them.
>>
>> So is it find ... fish | grep dog | grep kat you're after?
>> Filters in sequence, no intermediate files.
>>
>> Otherwise, express your homework a bit better ;)
>> Grant.
>
>
>(sigh)

Indeed :(

>
>find ... | awk '/dog/&&/cat/&&/fish/'

Oh joy, focus on electronics for a while and forget the simple things ;)

>
>:*)
>

Grant.
From: Eef Hartman on
In alt.os.linux.slackware no.top.post(a)gmail.com wrote:
> *MULTIPLE* strings are not *alternative* strings.

When they're in different expressions: yes they ARE.

So mutiple -e options ARE alternatives in sed/grep etc.
--
******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M.Hartman(a)tudelft.nl - phone: +31-15-27 82525 **
******************************************************************
From: William Hunt on
On Mon, 9 Aug 2010, Grant wrote:
> On Sun, 8 Aug 2010 05:05:03 -0700, William Hunt <wjh(a)prv8.net> wrote:
>> On Sun, 8 Aug 2010, Grant wrote:
>>> On Sun, 8 Aug 2010 03:03:34 +0000 (UTC), no.top.post(a)gmail.com wrote:
>> [...]
>>>>and then what's the utility to:
[...]
>>>
>>> Otherwise, express your homework a bit better ;)
>>> Grant.
>>
>>
>>(sigh)
>
> Indeed :(

uhhhh, sorry, uh, what was the question, again ?


>>
>>find ... | awk '/dog/&&/cat/&&/fish/'
>
> Oh joy, focus on electronics for a while and forget the simple things ;)

my awk expression doesn't handle a whole-word requirement,
if, uhh, one does exists.

idunno, in that case, maybe split($0,A) and then
if ( "cat" in A) && ( "dog" in A) && ("fish" in A) ...
nevermind. :*)


--
William Hunt, Portland Oregon USA
From: Grant on
On Sun, 8 Aug 2010 11:51:11 -0700, William Hunt <wjh(a)prv8.net> wrote:

>On Mon, 9 Aug 2010, Grant wrote:
>> On Sun, 8 Aug 2010 05:05:03 -0700, William Hunt <wjh(a)prv8.net> wrote:
>>> On Sun, 8 Aug 2010, Grant wrote:
>>>> On Sun, 8 Aug 2010 03:03:34 +0000 (UTC), no.top.post(a)gmail.com wrote:
>>> [...]
>>>>>and then what's the utility to:
>[...]
>>>>
>>>> Otherwise, express your homework a bit better ;)
>>>> Grant.
>>>
>>>
>>>(sigh)
>>
>> Indeed :(
>
>uhhhh, sorry, uh, what was the question, again ?
>
>
>>>
>>>find ... | awk '/dog/&&/cat/&&/fish/'
>>
>> Oh joy, focus on electronics for a while and forget the simple things ;)
>
>my awk expression doesn't handle a whole-word requirement,
>if, uhh, one does exists.
>
>idunno, in that case, maybe split($0,A) and then
>if ( "cat" in A) && ( "dog" in A) && ("fish" in A) ...
>nevermind. :*)

I tend to build up expressions on the command line, optimise if
I'm coding -- different mindset when I have an editor open and
the pretty syntax highlighting.

But, OP presented sloppy query, deserves sloppy answers?

Grant.