Recursivly find and edit files in place.


/ Published in: Perl
Save to your folder(s)

This requires a Bash shell and perl.


Copy this code and paste it in your HTML
  1. for i in `find ./ -name foo` ; { perl -p -i -e “s/old/new/g” $i ;}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.