home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 12939 < prev    next >
Encoding:
Text File  |  1992-11-05  |  1.1 KB  |  25 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!gmd.de!wittig
  3. From: wittig@gmd.de (Georg Wittig)
  4. Subject: Re: Erasing words with less than n letters 
  5. Message-ID: <wittig.720968081@gmd.de>
  6. Sender: news@gmd.de (USENET News)
  7. Nntp-Posting-Host: gmdzi
  8. Organization: GMD, Sankt Augustin, Germany
  9. References: <1992Nov4.180618.9183@inesc.pt>
  10. Date: Thu, 5 Nov 1992 12:54:41 GMT
  11. Lines: 12
  12.  
  13. jota@iguana.iguana.pt (Joao Pedro Martins) writes:
  14.  
  15. >    Is there a way of erasing the words with less than n letters
  16. >using unix ? sed ? awk ? The words (in a dictionary) are sorted and
  17. >one per line.
  18.  
  19.     awk 'length>=n' INPUT_FILE > OUTPUT_FILE
  20. --
  21. Georg Wittig                  GMD-I8.IT                                         Schloss Birlinghoven          P. O. Box 1316                                    D-W-5205 Sankt Augustin 1     Germany
  22. email: Georg.Wittig@gmd.de    telephone: (+49) 2241 14-2294
  23.  ------------------------------------------------------------------------------
  24. "In the beginning was the word, but it wasn't a fixed number of bits."
  25.