home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!samsung!transfer!jjmhome!alden!alden.UUCP
- From: sgr@alden.UUCP (Stan Ryckman)
- Newsgroups: comp.unix.questions
- Subject: Re: Fun with sed!!!! [nothing better to do on Saturday night]
- Message-ID: <512@alden.UUCP>
- Date: 17 Aug 92 16:28:48 GMT
- References: <1992Aug2.152356.7333@news.acns.nwu.edu> <1992Aug10.192853.3209@kopachuk.uucp>
- Sender: usenet@alden.UUCP
- Organization: Alden Electronics, Westboro, MA
- Lines: 52
-
- In article <1992Aug10.192853.3209@kopachuk.uucp> dcb@kopachuk.uucp (David Breneman) writes:
- >In article <1992Aug2.152356.7333@news.acns.nwu.edu> navarra@casbah.acns.nwu.edu (John Navarra) writes:
- >>
- >>
- >>For today's sed problem let us go all the way back to early grade school
- >>where we heard the famous rule:
- >>
- >>'I' before "E" except after "C".
- >>
- >>This is the rule I want to implement in sed. So far, here is my progress:
- >
- >Process deleted...
- >
- >>Wonderful, Wonderful! I needed to misspell words in order to correct
- >>other words, then change all the misspelled words back in addition to
- >>other misspelled words just like them!
- >
- >When you get up, you can try adding the second half of the rule:
- >
- >"...or sounding like "A" as in neighbor or weigh."
-
- Oh, it gets a lot worse than that.
- How do you pronounce "either?"
- Does anyone named "Neil" pronounce his name as if "Nail?"
-
- In fact, I ran "egrep -i '(^|[^c])ei' /usr/dict/words"; the
- first few (of 213 matches) are:
- absenteeism <- not "A" sound
- Aeneid <- not "A" sound
- agreeing <- not "A" sound
- albeit <- not "A" sound
- Alexei <- not "A" sound
- Anaheim <- not "A" sound
- Andrei <- I don't know
- aniseikonic <- I have no idea!
- apartheid <- not "A" sound
- atheism <- not "A" sound"
- atheist <- not "A" sound
-
-
- What would Einstein think about this "rule?" :-)
- ^^ ^^
- >
- >Be sure to post your solution. :-)
-
- Yeah, especially if you can find one that will get all these
- words right! :-) :-)
-
- Stan.
- --
- This .signature has expired. Call 1-900-YOU-FOOL to find out why.
- Stan Ryckman sgr@alden.UUCP
-