![]() |
|
|
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 |
| Help to replace character strings | rahulrathod | UNIX for Dummies Questions & Answers | 5 | 12-18-2008 05:26 AM |
| replace first character of string sed | prkfriryce | Shell Programming and Scripting | 6 | 08-03-2007 03:07 PM |
| Replace a character in last line | Mohammed | Shell Programming and Scripting | 6 | 08-01-2007 03:46 PM |
| How to replace a character in a file | preethgideon | Shell Programming and Scripting | 6 | 08-30-2006 07:19 PM |
| replace character with tr | tmxps | UNIX for Dummies Questions & Answers | 3 | 09-29-2005 08:32 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
echo $var|sed 's/\./\_/g'
|
|
||||
|
hi,
I want to replace _ with \_. I am using below command. echo old_path | sed 's/\_/\\_/g' It is working fine. but when I use that in script file like below. $oldpath1=`echo old_path | sed 's/\_/\\_/g' > 1`; $ echo oldpath1 oldpath1 It is not repacing. Any suggestions. Thanx in advance. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|