Perl search and replace from command line

Written by on Saturday, June 7, 2008 11:34 - 0 Comments

This is a simple way to do a perl search and replace for multiple files from the Linux command line.

 

perl -pi -e ‘s/word to replace/replace with this word/g’ ./*.* ')}

Article written by MyComputerAid.com



Comments are closed.

Join our mailing list

Receive computer support information.

E-mail:

Ad Sponsor







Sponsors

2003 server - Sep 30, 2008 22:34 - 0 Comments

instant messaging srv records

More In Computers & PC


Microsoft Outlook - Mar 22, 2009 11:22 - 0 Comments

Outlook: Duplicates in Mailbox

More In Computers & PC


Microsoft Desktop, Web browsers and Internet, Windows 2000, Windows 7, Windows 98, Windows Firewall and networking, Windows Vista, Windows XP - Feb 8, 2010 18:09 - 0 Comments

Disable Proxy settings in IE

More In Computers & PC