On 25 Feb., 17:01, Mark Thomas <m... / thomaszone.com> wrote:
> First, I don't think the * is doing what you think it is. 'ruby -
> pi.bak' is probably what you want. Second, it's more efficient to use
> one regex when you don't really need two.
>
> ruby -pi.bak -e 'gsub(/VAR_(TYP|FREQ)/,'\1')' file.dat

many thanks's , it's too bad but i have a lot of replacment's
difficult to combine.
The hint for ";" instead of "." is my solution and now i recognize why
my replaced file end with $$$ instead of *.bak
like in perl.

regards, Christian