I've a windows batch command that is being generated by an external product which inserts variables which will replace sections within a space delimeted data file. So below I'm searching for the value of "--d--" and replacing it with "email@domain.com"
The problem I have is because perl treats "@" as a system command and ignores everything after "email". The typical solution of adding a \ before the @ sign won't work, as the external product can't accomodate this. Is there a way I can treat everything that comes across within the email variables as non system variables?
I'm wanting to do this as a single line command.
Thanks
A quote is the epiphany of intelligence
Perl:
perl -pe "s/--d--/email@domain.com /g"; C:\input.txt > C:\output.txt
The problem I have is because perl treats "@" as a system command and ignores everything after "email". The typical solution of adding a \ before the @ sign won't work, as the external product can't accomodate this. Is there a way I can treat everything that comes across within the email variables as non system variables?
I'm wanting to do this as a single line command.
Thanks
A quote is the epiphany of intelligence