home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10457 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  670 b 

  1. Path: sparky!uunet!caen!uakari.primate.wisc.edu!hp9000.csc.cuhk.hk!b130778
  2. From: b130778@hp9000.csc.cuhk.hk (MA NGAI LING)
  3. Newsgroups: comp.unix.questions
  4. Subject: specifying range in awk
  5. Message-ID: <1992Aug28.013050.21408@hp9000.csc.cuhk.hk>
  6. Date: 28 Aug 92 01:30:50 GMT
  7. Organization: The Chinese University of Hong Kong
  8. Lines: 19
  9.  
  10.  
  11.             I have a file looking like the following:
  12.  
  13. aaaa
  14. bbbb
  15. cccc
  16. dddd
  17. eeee
  18. aaaa
  19. bbbb
  20. bbbbb
  21. cccc
  22.  
  23.         I would like to use awk or sed or something else to get all   
  24. ocurrence of a and anything between "c" and "e".  I tried 'a|c,e' and
  25. other combination in awk without much joy.  Is there any way to do it?
  26. Thanks in advance.
  27.  
  28. Ida
  29.