home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!caen!uakari.primate.wisc.edu!hp9000.csc.cuhk.hk!b130778
- From: b130778@hp9000.csc.cuhk.hk (MA NGAI LING)
- Newsgroups: comp.unix.questions
- Subject: specifying range in awk
- Message-ID: <1992Aug28.013050.21408@hp9000.csc.cuhk.hk>
- Date: 28 Aug 92 01:30:50 GMT
- Organization: The Chinese University of Hong Kong
- Lines: 19
-
-
- I have a file looking like the following:
-
- aaaa
- bbbb
- cccc
- dddd
- eeee
- aaaa
- bbbb
- bbbbb
- cccc
-
- I would like to use awk or sed or something else to get all
- ocurrence of a and anything between "c" and "e". I tried 'a|c,e' and
- other combination in awk without much joy. Is there any way to do it?
- Thanks in advance.
-
- Ida
-