Try
sed 's/Basketball/Baseball/g' filename > newfilename
Nearly just the same as in VI....
/Karl
-----Ursprüngliche Nachricht-----
Von: Burris Mark [mailto:oracledba-ezmlmshield-x23149705.[Email address protected]
Gesendet: Montag, 2. Juli 2007 22:01
An: LazyDBA Discussion
Betreff: Unix Script Question
I want to do a global change of 'Basketball' to 'Baseball' in a file called 'File1' in a UNIX script. I know how to do it with the VI editor but not within a UNIX script. Can someone tell me how to accomplish it?
---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY To post a dba job: http://jobs.lazydba.com To Subscribe : http://www.LazyDBA.com To unsubscribe: http://www.lazydba.com/unsubscribe.html
----------------
Vorsitzender des Aufsichtsrats: Hans-Georg Härter
Geschäftsführung: Egon Behle (Vorsitz), Rolf Bulander, Wolfgang Runge, Karl-Heinz Schrödl, Wolfgang Zeitz
Sitz: Schwäbisch Gmünd - Handelsregistereintrag: Amtsgericht Ulm HRB 701678
Oracle LazyDBA home page