Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: What gives??

Re: What gives??

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Wed, 21 Jan 2004 11:54:37 -0800
Message-ID: <F001.005DDC7B.20040121115437@fatcity.com>

[oriole_at_frlinux1 oriole]$ export AWK="awk '{print \$4}'" [oriole_at_frlinux1 oriole]$ echo ${AWK}
awk '{print $4}'
[oriole_at_frlinux1 oriole]$ cal | awk '{print $4}'

We

7
14
21
28

[oriole_at_frlinux1 oriole]$ cal | ${AWK}
awk: cmd. line:1: '{print
awk: cmd. line:1: ^ Invalid char ''' in expression

[oriole_at_frlinux1 oriole]$ cal | "${AWK}" bash: awk '{print $4}': command not found [oriole_at_frlinux1 oriole]$ cal | eval "${AWK}"

We

7
14
21
28

[oriole_at_frlinux1 oriole]$

Nikhil Khimani wrote:
>
> L&G,
>
> I know there is a simple solution to this .. but I can't think of it right
> now. Any help will be appreciated ...
>
> Thanks,
>
> Nikhil
>
> ============================================================================
> =
> [ny-nikhil1:/export/home/nkhimani/bin]$ export AWK="awk '{print \$4}'"
> [ny-nikhil1:/export/home/nkhimani/bin]$ echo ${AWK}
> awk '{print $4}'
> [ny-nikhil1:/export/home/nkhimani/bin]$ cal | awk '{print $4}'
>
> W
>
> 7
> 14
> 21
> 28
>
> [ny-nikhil1:/export/home/nkhimani/bin]$ cal | ${AWK}
> awk: syntax error near line 1
> awk: bailing out near line 1
> [ny-nikhil1:/export/home/nkhimani/bin]$
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Nikhil Khimani
> INET: nkhimani_at_marketaxess.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Regards,

Stephane Faroult
Oriole Software
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Jan 21 2004 - 13:54:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US