Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SED ERROR 1

Status
Not open for further replies.
Sep 22, 2004
27
0
0
US
i have the sed statement to change
to_char(BASE_DT, 'YYDDD')to to_char(CYC_DT, 'YYDDD')BASE_DT.
The sed that i have is :
sed 's/to_char\(BASE_DT, \'YYDDD\'\)/to_char\(CYC_DT, \'YYDDD\'\) BASE_DT/g' outdat.sql > osql.sql

However this gives an error. Please advice on the right syntax.
Thanks a lot
roe
 
sed "s/to_char(BASE_DT, 'YYDDD')/to_char(CYC_DT, 'YYDDD') BASE_DT/g" outdat.sql > osql.sql


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top