home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Unix System Administration Handbook 1997 October
/
usah_oct97.iso
/
news
/
cnews.tar
/
doc
/
toc.awk
< prev
next >
Wrap
Text File
|
1992-02-17
|
295b
|
9 lines
#! /bin/sh
# turn raw index data into tbl input for a table of contents.
# record format: toc:page:title:section #:chapter|majorsection
exec awk '
BEGIN { FS=":"; sep="\t" }
$5 == "chapter" { print $4 sep $3 sep $2 }
$5 == "majorsection" { print ""; print $4 sep $3 sep $2 }
' $*