tricks with find, grep and perl

Linux example - find and grep, and perl replacement to 
   fix a spelling error.
-------------------------------------------------------

find ./ -type f -name '*.htm*' -exec grep Galations {} \;
find ./ -type f -name '*.txt' -exec grep Galations {} \;

find ./ -type f -name '*.htm*' -exec perl -pi -e 's/Galations/Galatians/g' {} \;
find ./ -type f -name '*.txt' -exec perl -pi -e 's/Galations/Galatians/g' {} \; 






WAGONEERS.COM


BUY this FSJ decal!

...use PayPal to buy the decal!
Make payments with PayPal


this is an approved Family-Friendly Site

       


Independent Lifetime Dealer John Meister - customer #283461 - since 1983
AMSOIL synthetic lubricants and filters


these pages protected by US Copyright laws - John Meister copyright © 1995-2001 all rights reserved, contact john -at- wagoneers.com - Washington State Law prohibits "spam" - $500 fine