pwnawannab
Technical User
Having trouble constructing proper PERL command to perform substitution of a string with in one file with contents of another file. I am working in ksh. Here is what I am trying:
substitute_variable='some_file'
perl -p -e 's/search_string/$substitute_variable/' output_file
The result is that search_string is blank after execution. I am not sure if something is up with perl command or I am just mixing up ksh with perl.
Please let me know if you have any thoughts on how to perform this.
Thanks,
substitute_variable='some_file'
perl -p -e 's/search_string/$substitute_variable/' output_file
The result is that search_string is blank after execution. I am not sure if something is up with perl command or I am just mixing up ksh with perl.
Please let me know if you have any thoughts on how to perform this.
Thanks,