home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15163 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!not-for-mail
  2. From: ren@function.mps.ohio-state.edu (Liming Ren)
  3. Newsgroups: comp.unix.questions
  4. Subject: How to ignore a field using lex?
  5. Date: 4 Jan 1993 21:12:03 -0500
  6. Organization: Department of Mathematics, The Ohio State University
  7. Lines: 21
  8. Distribution: world
  9. Message-ID: <1iaqpjINNj77@function.mps.ohio-state.edu>
  10. NNTP-Posting-Host: function.mps.ohio-state.edu
  11.  
  12. I try to parse a huge file of many documents delimitered by special 
  13. field separators such as .I ,  .W   etc. The problem is I want to 
  14. ignore everything from (including) separator .N to next (not including)
  15. separator (Must be one of .A ,.B, etc.). For example, in the following
  16. segment, I want to ignore specially marked  two lines.
  17.  
  18. .I 2151
  19. User Program Measurement in a Time-Shared Environment
  20. .W
  21. A general discussion of the measurement of
  22. shown how other time-sharing systems may provide similar measuring facilities.
  23. .C
  24. 4.30 4.32 4.42 4.43
  25. .N                                                  <--------------this line
  26. CA711005 JB February 2, 1978  1:05 PM               <-------------and this line
  27. .I 2152
  28. .B
  29. virtual computers, performance improvement
  30.  
  31. How to do it? Please help!
  32. Many thanks!
  33.