Substitute a string original
with bar
in multiple files
$ perl -pi -e 's/foo/bar/' *.txt
Install a CPAN module
For example, to install module App::Ack
$ sudo cpan App::cpanminus
$ sudo cpanm App::ack
original
with bar
in multiple files$ perl -pi -e 's/foo/bar/' *.txt
For example, to install module App::Ack
$ sudo cpan App::cpanminus
$ sudo cpanm App::ack