Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2003 00:30:01 +0800 (CST)
From:      =?iso-8859-1?q?adrian=20kok?= <adriankok2000@yahoo.com.hk>
To:        questions@FreeBSD.org
Subject:   sed to remove pattern ','
Message-ID:  <20030410163001.63667.qmail@web21201.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
hi all

I have problem to replace the pattern ',' to |

can you give me hint?

tks

data:          'peter','30 Woodroad, CA','USA'
                 'coral','110 Foreest','UK'
                 
to
 'peter|30 Woodroad, CA|USA'
 'coral|110 Foreest|UK'
          
and I used the following but failed

sed -e 's/\','/\|/g

because output only replace all the pattern , to | 
not "," to |         

_______________________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030410163001.63667.qmail>