Related Article:Replace String in a C Shell Script
is a solved Shell Scripting discussion thread by msrikanth that has 9 replies, was last updated 1 year ago and has been tagged with the keywords: awk, script, sed, string, unix.
I'll bet it is displaying exactly what's in the file; /programst is exactly what you should see if there's a <CR> after ...user/test. Use vi to edit the file. Then enter :set list; you'll probably see a <CR> (^M) in there somewhere. Or use od -c script_name; you should see \r in there.