I need to write a sed script that, on all lines starting with “/” and ending with “/”, any occurrence of “perl” to “PERL”. Can I use an if statement?
if(line starts with /* & ends with */) replace perl with PERL
I am trying to write this in a script, not on the command line.
Aucun commentaire:
Enregistrer un commentaire