General Notes

This is a stupid page-name, but I couldn’t figure out a better name.

 

I wanted to stick this info in the wiki so somebody could find it again, if needed.

 

 

Command line

 

perl -pi.bak -e "s/<search>/<replace>/;" *.txt

 eg

perl -pi.bak -e "s/Copy.Server0=cigna1/Copy.Server0=cigna2/;" *.txt

 

Windows-perl does not want to work without the .bak option (creates backup files -- you could name it anything, really)

 

See Also

Programming.Regular Expression
Command Line Wild Card

 

Category tags

Perl Programming RegExp Text