Take a look at Perl's -s option.
Ignoring any quoting issues, something like this should work:
perl -pi -se 's/.*'def'.*''/\t"def" => "dumper\/$D.def",/g' -D=ADCIF C +onfigFile
Note: That -D=... becomes $D inside the script.
In reply to Re: Command-line arguments to command-line Perl
by BrowserUk
in thread Command-line arguments to command-line Perl
by RecursionBane
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |