Amol

why do you want an "&" near the "|" try without it. you command works on
bash without the "&"

Kapil Sethi
System Administrator
BharatConnect Ltd.
Ph: 011-3357674
----- Original Message -----
From: "Amol Rao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 28, 2002 10:36 AM
Subject: [ilugd]: Hello and error output capturing in /bin/sh !!


> Hey people,
>
> I am new here. Programmer. Good site, guys!
>
> I have a question :
> In a sh script, I want to capture the output printed
> to the error stream.
>
> gcc with NeXT PDO does that on my box.
>
> I want to capture version number out of gcc. I tried
> gcc -v |& awk '{ print $3}', won't work under sh,
> works with csh. Any clues for /bin/sh ? Anybody ?
>
> Cheers,
> Amol.
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
>           ================================================
> To subscribe, send email to [EMAIL PROTECTED] with subscribe in
subject header
> To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in
subject header
> Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
>           =================================================

          ================================================
To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header
Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
          =================================================

Reply via email to