![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| replace | charandevu | Shell Programming and Scripting | 6 | 04-07-2008 12:30 PM |
| replace last / by | | naikaa | Shell Programming and Scripting | 6 | 01-17-2008 02:19 AM |
| How to replace into Vi | ravi.sadani19 | Shell Programming and Scripting | 5 | 06-25-2007 10:30 AM |
| Replace \n with \r\n | Chanakya.m | Shell Programming and Scripting | 3 | 07-19-2006 08:20 AM |
| Replace | jda2001 | UNIX for Dummies Questions & Answers | 2 | 09-06-2005 03:20 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
using sed to replace ' with `
Dear All,
I am writting a shell script program on AIX server version 5.3 in which I am doing cleaningprocess for files in which I am trying to replace ' with ` . and for this I am using following command: sed -e 's/[ ]/$/g' -e 's/\\/\//g' -e 's/'/`/g' $file >> $opath"/"${file##/*/} However, I am getting an syntax error. ./rawfiles_p.ksh[27]: 0403-057 Syntax error at line 44 : ``' is not matched. I am new to KSH script. Can anybody sugget me where it is going wrong?? I also tried using "s/'/`/g" still the problem was not resolved. Can anybody suggest me how to replace ' (single quote) in a file with ` symbol. Thanks & Regards Prasad |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|