[Tfug] Quick command line question...

bpoag at comcast.net bpoag at comcast.net
Wed Mar 10 09:25:33 MST 2010


sed is your friend. 

----- Original Message ----- 
From: "Jim March" <1.jim.march at gmail.com> 
To: "Tucson Free Unix Group" <tfug at tfug.org> 
Sent: Wednesday, March 10, 2010 8:41:34 AM GMT -07:00 U.S. Mountain Time (Arizona) 
Subject: [Tfug] Quick command line question... 

Folks, 

Say I've got a bunch of text files in a directory...all ending with 
.TXT...a dozen or so. 

I know that in some, a particular word isn't spelled right - say, 
"regurjitation". I want to do a command to search for that and 
replace it with "regurgitation" across all files where the bad one is 
found, and save all files to their original names. 

Any help appreciated :). 

Jim 

_______________________________________________ 
Tucson Free Unix Group - tfug at tfug.org 
Subscription Options: 
http://www.tfug.org/mailman/listinfo/tfug_tfug.org 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tfug.org/pipermail/tfug_tfug.org/attachments/20100310/1816e33d/attachment-0002.html>


More information about the tfug mailing list