Top

Command line Global Search and Replace

Please Register to submit score.
Average Score  0.0
Scores Submitted  0
Date Added  Apr 13, 2007
Last Updated  Jul 03, 2007
Tags  perl  replace  search 

Introduction

This is a very handy command line use of perl. You basically execute the s// function of perl on a handful of files to do a global search and replace. Just run this from the command line and indicate what files you'd like to run this against. The .bak indicates the extension for original files backed up.

Grab the Code

Comments

  (1)  RSS
bps19882006
Comments: 22
 
Perl Snippet:  Command line Global Search and Replace
Posted on Oct 17, 2007 5:13 pm
very nice hawkee ;) kudos

Please Register or Login to start posting comments.
Bottom