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