home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!a-douglas@uchicago.edu
- From: a-douglas@uchicago.edu (Allen Douglas)
- Subject: AWK Iteration
- Message-ID: <1992Aug28.183452.2245@midway.uchicago.edu>
- Sender: news@uchinews.uchicago.edu (News System)
- Organization: U of C Law School
- Date: Fri, 28 Aug 1992 18:34:52 GMT
- Lines: 20
-
- Hello,
- I need to get the shell or awk to take a large file and pipe segments
- to a temporary file where I can then run some awk or agrep commands
- (on the temporary file.) The file is a collection of legal cases,
- delimited by "of 38 CASES" I want to awk/agrep the individual cases
- and output to a results file.
-
-
- The logic is:
-
- Read in to beginning of first break point (case)-(this output will be discarded)
- Start reading the first case until beginning of next case and send text of case to temporary file .
- Process commands on temp file, output to results file(s.)
- Read in text of the next case, until the begining the next+1 case. (replacing the previous output)
-
- The cases (as in legal case) have delimeters of "of 38 CASES"
-
-
- I haven't been able to fathom the syntax, as I am very green programming Unix.
-
-