SunQuest
           Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 6th, 2005, 09:22 PM
ml5003 ml5003 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 1 ml5003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 34 sec
Reputation Power: 0
find and replace, ad infinitum

Dear DevShed,

I am interested in a shell script to use in the darwin UNIX implementation on my MAC (running OS X 10.2.8) that will perform multiple [possibly hundreds of] find and replace functions within a document.

As an example, if I had document that contained, among other thing, the names of teams in the Nat'l Football League, and I wanted to replace these with all of the corresponding team names from Major League Baseball (e.g. NY Giants -> NY Yankees, New England Patriots -> Boston Red Sox, Philadelphia Eagles -> Philadelphia Phillies and so forth), is there a script that could make all of these changes at once? (Or maybe a variation on/modification to sed?)

The script I envision would include the names of all of the find(football) and replace (baseball) pairs. I would be using it over and over on many documents with similar content.

Thanks,

ml5003

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > find and replace, ad infinitum


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway