CodeGrabber
{ USER }
posts: 23
last: 28-Apr-2008
TITLE: find and replace text from the shell
DESCRIPTION: find and replace text from the shell
Submitted: 09-Apr-2008 12:00:58 ( 32w 0d 5h ago ) Language: Perl (*.pl *.perl *.prl *.ph)
Views: 285 Lines of Code: 9 LINES
Rating:
rate: star1
star2
star3
star4
star5
dstar1
dstar2
dstar3
dstar4
dstar5  ( rated! )
  { 0.00 / 5 }
Difficulty: Intermediate
Bookmark
/* Author: CodeGrabber
   Date: 09-04-2008
   Filename: 
   Description: find and replace text from the shell
   History: 
*/


find . -name '*.txt' -print0 |xargs -0 perl -pi -e 's/find/replace/g'