Problem removing $ using sed in script

view full story

http://www.unix.com – I am trying to use the sed command to remove any character that is passed as a parameter to the script. I may want to replace any character in the file (-, =, $, space). I'm running into an issue when passing the $. This is a typical row in the file. Code: "000000B553","--INTERNAL USE ONLY-PCG--",="07041200033", $26.70,$18.23,$8.47,04/12/2007,="00015251",198181 Code (test_script.sh): Code: #!/bin/ksh REMOVE_CHAR=${1}  sed "s/""${REMOVE_CHAR}""//g" orig.csv > corrected.csv exit 0 If I run the follow (HowTos)