![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running a String as a command, zsh. | drnkhmlck | Shell Programming and Scripting | 2 | 04-03-2008 11:21 AM |
| Running two command at the same time | Orbix | UNIX for Dummies Questions & Answers | 10 | 11-27-2007 01:04 AM |
| Running command inside awk | Raghuram.P | Shell Programming and Scripting | 1 | 08-09-2007 02:54 AM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | Linux | 5 | 07-30-2007 05:26 AM |
| running command more than twice in one second? | Terrible | Shell Programming and Scripting | 4 | 12-10-2006 09:45 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
sed command not running
I am using solrais 10 on sun sparc.
The following command executes successfully Code:
echo c:/test.txt | sed -e 's/\//\\\//g' Code:
x=`echo c:/test.txt | sed -e 's/\//\\\//g'` Code:
sed: command garbled: s/\//\\//g Last edited by Yogesh Sawant; 04-17-2008 at 06:05 AM. Reason: added code tags |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
one way:
Code:
# x=`echo c:/test.txt | sed -e 's/\\//\\\\\//g'` # echo $x c:\/test.txt Last edited by Tytalus; 04-17-2008 at 06:23 AM. Reason: copy / paste :-) |
|
#3
|
||||
|
||||
|
what is it that you're trying to achieve?
|
|
#4
|
|||
|
|||
|
thanks for reply
Thanks all of you for helping me.
>what is it that you're trying to achieve? Actually, i am to pass the output of this command to SED to replace a variable PATH with the output of this command. |
|||
| Google The UNIX and Linux Forums |