Jun 3, 2009 #1 goodmans MIS Joined Apr 23, 2008 Messages 63 Location GB Hello people, Please help me solving this as I am not expert in unix scripting. script: #!/bin/ksh v=$1 sed -e "s/PART_LIST=/PART_LIST=$v" myfile.txt output: sed: command garbled: s/PART_LIST=/PART_LIST=test Regards G
Hello people, Please help me solving this as I am not expert in unix scripting. script: #!/bin/ksh v=$1 sed -e "s/PART_LIST=/PART_LIST=$v" myfile.txt output: sed: command garbled: s/PART_LIST=/PART_LIST=test Regards G
Jun 3, 2009 #2 feherke Programmer Joined Aug 5, 2002 Messages 9,541 Location RO Hi Code: sed -e "s/PART_LIST=/PART_LIST=$v[COLOR=red pink]/[/color]" myfile.txt Note that if $v contains slashes ( / ), you will have to escape them. Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Hi Code: sed -e "s/PART_LIST=/PART_LIST=$v[COLOR=red pink]/[/color]" myfile.txt Note that if $v contains slashes ( / ), you will have to escape them. Feherke. http://rootshell.be/~feherke/