home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!concert!sas!mozart.unx.sas.com!sasjqw
- From: sasjqw@micro.unx.sas.com (Jon White)
- Subject: Re: Erasing words with less than n letters
- Originator: sasjqw@micro.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <Bx976G.I84@unx.sas.com>
- Date: Thu, 5 Nov 1992 17:27:51 GMT
- References: <1992Nov4.180618.9183@inesc.pt> <1992Nov5.011854.25944@umbc3.umbc.edu>
- Nntp-Posting-Host: micro.unx.sas.com
- Organization: SAS Institute Inc.
- Lines: 17
-
-
- rouben@math9.math.umbc.edu (Rouben Rostamian) writes:
- : jota@iguana.inesc.pt writes:
- : > Is there a way of erasing the words with less than n letters
- : >using unix ? sed ? awk ? The words (in a dictionary) are sorted and
- : >one per line.
- :
- : To print input lines containing n or more characters:
- :
- : awk 'length($0) >= n { print }'
-
- or simply:
-
- awk 'length >= n'
-
- --jon
-
-