Turning the into an

Gerben 'P' Vos gpvos at cs.vu.nl
Thu Dec 13 02:12:18 AEST 1990


0004068145 at mcimail.com (Ari Kahan) writes:
>joshi at motcid.UUCP (Abhay B. Joshi) writes:

>> I have a simple text-file containing the following text (3 lines):
>>
>>      The goal:
>>      All I am trying to do is replace the 'the's by 'an's.
>>      That's all.

>:g/\<the\>/s//an/g

If that's all, why not do it simpler:

:%s/\<the\>/an/g

-					Gerben.
--
--- Gerben Vos - Aconet: BIGBEN!Gerben Vos - Internet: gpvos at cs.vu.nl
"While you are here, your wives and girlfriends are dating handsome American
 movie and TV stars. Stars like Tom Selleck, Bruce Willis, and Bart Simpson."
                                -- Baghdad Betty



More information about the Comp.unix.questions mailing list