home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10132 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  2.0 KB

  1. Path: sparky!uunet!munnari.oz.au!samsung!transfer!jjmhome!alden!alden.UUCP
  2. From: sgr@alden.UUCP (Stan Ryckman)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Fun with sed!!!! [nothing better to do on Saturday night]
  5. Message-ID: <512@alden.UUCP>
  6. Date: 17 Aug 92 16:28:48 GMT
  7. References: <1992Aug2.152356.7333@news.acns.nwu.edu> <1992Aug10.192853.3209@kopachuk.uucp>
  8. Sender: usenet@alden.UUCP
  9. Organization: Alden Electronics, Westboro, MA
  10. Lines: 52
  11.  
  12. In article <1992Aug10.192853.3209@kopachuk.uucp> dcb@kopachuk.uucp (David Breneman) writes:
  13. >In article <1992Aug2.152356.7333@news.acns.nwu.edu> navarra@casbah.acns.nwu.edu (John Navarra) writes:
  14. >>
  15. >>
  16. >>For today's sed problem let us go all the way back to early grade school
  17. >>where we heard the famous rule:
  18. >>
  19. >>'I' before "E" except after "C".
  20. >>
  21. >>This is the rule I want to implement in sed. So far, here is my progress:
  22. >
  23. >Process deleted...
  24. >
  25. >>Wonderful, Wonderful! I needed to misspell words in order to correct
  26. >>other words, then change all the misspelled words back in addition to
  27. >>other misspelled words just like them!  
  28. >
  29. >When you get up, you can try adding the second half of the rule:
  30. >
  31. >"...or sounding like "A" as in neighbor or weigh."
  32.  
  33. Oh, it gets a lot worse than that.
  34. How do you pronounce "either?"
  35. Does anyone named "Neil" pronounce his name as if "Nail?"
  36.  
  37. In fact, I ran "egrep -i '(^|[^c])ei' /usr/dict/words"; the
  38. first few (of 213 matches) are:
  39.     absenteeism    <- not "A" sound
  40.     Aeneid        <- not "A" sound
  41.     agreeing    <- not "A" sound
  42.     albeit        <- not "A" sound
  43.     Alexei        <- not "A" sound
  44.     Anaheim        <- not "A" sound
  45.     Andrei        <- I don't know
  46.     aniseikonic    <- I have no idea!
  47.     apartheid    <- not "A" sound
  48.     atheism        <- not "A" sound"
  49.     atheist        <- not "A" sound
  50.  
  51.  
  52. What would Einstein think about this "rule?"   :-)
  53.            ^^   ^^
  54. >
  55. >Be sure to post your solution. :-)
  56.  
  57. Yeah, especially if you can find one that will get all these
  58. words right!  :-) :-)
  59.  
  60. Stan.
  61. --
  62. This .signature has expired.  Call 1-900-YOU-FOOL to find out why.
  63.     Stan Ryckman   sgr@alden.UUCP
  64.