I would like to replace say abc[d]192[d] to abc-192-, ie. replacing [d] with -. The value of abc[d]192[d] is stored in a variable say "myvar".
ie. myvar = "abc[d]192[d]"
I am using csh. I want this to be done inside script, not replacing those characters for external file(s).
I have seen this before, but can't remember how to do it.
hope someone can help.
thanks