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

Home -> Community -> Usenet -> c.d.o.server -> awk & escape character

awk & escape character

From: Tom76 <rbhuma_at_ford.com>
Date: 25 May 2005 09:56:04 -0700
Message-ID: <1117040164.635002.181010@g44g2000cwa.googlegroups.com>


how do i define an escape character in awk. i am using awk at the unix command line.

cat a.list |awk 'BEGIN {} {a=a"'"$1"',"} END{print a }'

^
^

                               |
                               |

I want to print the single quote within the double quote.

i know this is off-topic, but most of us use awk one time or other. so thought to put it here. Thanks Received on Wed May 25 2005 - 11:56:04 CDT

Original text of this message

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