Jun 3, 2009 #1 goodmans MIS Apr 23, 2008 63 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 Aug 5, 2002 9,540 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/