RSS
Home
|
Link Us
|
Contact
Categories
-- All --
Perl
PHP
MySQL
Windows
JavaScript
HTML
Apache
CVS
Linux
SEO
Perl (9)
PHP (35)
MySQL (5)
Windows (7)
JavaScript (5)
HTML (6)
Apache (6)
CVS (4)
Linux (13)
SEO (11)
The registration is temporarily disabled.
However you can post your comments without registration.
Authentication
Username:
Password:
Register
|
Lost password
-->
Search and replace text in multiple files with Perl
Home
»
Perl
»
Search and replace text in multiple files with Perl
Date: 2007-05-29
This tip explains how to search and replace text in multiple files with Perl under windows and linux/unix.
Download
|
Printer Friendly
Add to Google
Add to Del.icio.us
Add to Digg
Add to Technorati
Add to Yahoo!
Add to Blinklist
Add to Furl
Add to reddit
find . -name "*.html" | xargs perl -pi.bak -w -e "s/search/replace/gis;" Backup files will be generated with ".bak" extension. For Windows there is additional requirement: http://unxutils.sourceforge.net
Comments
No comments yet.
Post a comment
Your Name
Your Email
(won't be published)
Site
(e.g. http://)
*
Title
*
Comment
*
Required fields.
Copyright © 2005-2008
Execution time: 0.03689
hosted by
1and1