home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2861 < prev    next >
SHell self-extracting ARchive  |  1991-02-28  |  40.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: SHell self-extracting ARchive (archive/shar).

You can browse this item here: 2861

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Texinfo Document (document/texInfo) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail text default
99% file TeX document, ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 74 6f | 6d 40 73 73 64 2e 63 73 |From: to|m@ssd.cs|
|00000010| 64 2e 68 61 72 72 69 73 | 2e 63 6f 6d 20 28 54 6f |d.harris|.com (To|
|00000020| 6d 20 48 6f 72 73 6c 65 | 79 29 0a 4e 65 77 73 67 |m Horsle|y).Newsg|
|00000030| 72 6f 75 70 73 3a 20 61 | 6c 74 2e 73 6f 75 72 63 |roups: a|lt.sourc|
|00000040| 65 73 0a 53 75 62 6a 65 | 63 74 3a 20 6d 6b 69 64 |es.Subje|ct: mkid|
|00000050| 20 70 61 74 63 68 65 73 | 20 70 61 72 74 20 32 2f | patches| part 2/|
|00000060| 32 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 54 |2.Messag|e-ID: <T|
|00000070| 4f 4d 2e 39 31 46 65 62 | 32 36 31 31 30 36 34 37 |OM.91Feb|26110647|
|00000080| 40 68 63 78 32 2e 73 73 | 64 2e 63 73 64 2e 68 61 |@hcx2.ss|d.csd.ha|
|00000090| 72 72 69 73 2e 63 6f 6d | 3e 0a 44 61 74 65 3a 20 |rris.com|>.Date: |
|000000a0| 32 36 20 46 65 62 20 39 | 31 20 31 36 3a 30 36 3a |26 Feb 9|1 16:06:|
|000000b0| 34 37 20 47 4d 54 0a 0a | 54 68 69 73 20 69 73 20 |47 GMT..|This is |
|000000c0| 74 68 65 20 73 65 63 6f | 6e 64 20 70 61 72 74 20 |the seco|nd part |
|000000d0| 6f 66 20 74 68 65 20 6d | 6b 69 64 20 75 70 64 61 |of the m|kid upda|
|000000e0| 74 65 2e 20 49 74 20 63 | 6f 6e 74 61 69 6e 73 20 |te. It c|ontains |
|000000f0| 74 68 65 20 6e 65 77 20 | 69 64 2e 74 65 78 69 6e |the new |id.texin|
|00000100| 66 6f 0a 6d 61 6e 75 61 | 6c 20 66 6f 72 20 74 68 |fo.manua|l for th|
|00000110| 65 20 49 44 20 70 72 6f | 67 72 61 6d 73 2e 0a 0a |e ID pro|grams...|
|00000120| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|00000130| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|00000140| 68 69 76 65 2e 20 20 52 | 65 6d 6f 76 65 20 61 6e |hive. R|emove an|
|00000150| 79 74 68 69 6e 67 20 62 | 65 66 6f 72 65 20 74 68 |ything b|efore th|
|00000160| 69 73 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 75 6e |is line,| then un|
|00000170| 70 61 63 6b 0a 23 20 69 | 74 20 62 79 20 73 61 76 |pack.# i|t by sav|
|00000180| 69 6e 67 20 69 74 20 69 | 6e 74 6f 20 61 20 66 69 |ing it i|nto a fi|
|00000190| 6c 65 20 61 6e 64 20 74 | 79 70 69 6e 67 20 22 73 |le and t|yping "s|
|000001a0| 68 20 66 69 6c 65 22 2e | 20 20 54 6f 20 6f 76 65 |h file".| To ove|
|000001b0| 72 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 0a |rwrite e|xisting.|
|000001c0| 23 20 66 69 6c 65 73 2c | 20 74 79 70 65 20 22 73 |# files,| type "s|
|000001d0| 68 20 66 69 6c 65 20 2d | 63 22 2e 20 20 59 6f 75 |h file -|c". You|
|000001e0| 20 63 61 6e 20 61 6c 73 | 6f 20 66 65 65 64 20 74 | can als|o feed t|
|000001f0| 68 69 73 20 61 73 20 73 | 74 61 6e 64 61 72 64 20 |his as s|tandard |
|00000200| 69 6e 70 75 74 20 76 69 | 61 0a 23 20 75 6e 73 68 |input vi|a.# unsh|
|00000210| 61 72 2c 20 6f 72 20 62 | 79 20 74 79 70 69 6e 67 |ar, or b|y typing|
|00000220| 20 22 73 68 20 3c 66 69 | 6c 65 22 2c 20 65 2e 67 | "sh <fi|le", e.g|
|00000230| 2e 2e 20 20 49 66 20 74 | 68 69 73 20 61 72 63 68 |.. If t|his arch|
|00000240| 69 76 65 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 2c |ive is c|omplete,|
|00000250| 20 79 6f 75 0a 23 20 77 | 69 6c 6c 20 73 65 65 20 | you.# w|ill see |
|00000260| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00000270| 73 73 61 67 65 20 61 74 | 20 74 68 65 20 65 6e 64 |ssage at| the end|
|00000280| 3a 0a 23 09 09 22 45 6e | 64 20 6f 66 20 61 72 63 |:.#.."En|d of arc|
|00000290| 68 69 76 65 20 32 20 28 | 6f 66 20 32 29 2e 22 0a |hive 2 (|of 2).".|
|000002a0| 23 20 43 6f 6e 74 65 6e | 74 73 3a 20 20 69 64 2e |# Conten|ts: id.|
|000002b0| 74 65 78 69 6e 66 6f 0a | 23 20 57 72 61 70 70 65 |texinfo.|# Wrappe|
|000002c0| 64 20 62 79 20 74 6f 6d | 40 68 63 78 32 20 6f 6e |d by tom|@hcx2 on|
|000002d0| 20 54 75 65 20 46 65 62 | 20 32 36 20 31 30 3a 35 | Tue Feb| 26 10:5|
|000002e0| 33 3a 31 32 20 31 39 39 | 31 0a 50 41 54 48 3d 2f |3:12 199|1.PATH=/|
|000002f0| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|00000300| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|00000310| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |ATH.if t|est -f '|
|00000320| 69 64 2e 74 65 78 69 6e | 66 6f 27 20 2d 61 20 22 |id.texin|fo' -a "|
|00000330| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00000340| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000350| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00000360| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00000370| 65 20 5c 22 27 69 64 2e | 74 65 78 69 6e 66 6f 27 |e \"'id.|texinfo'|
|00000380| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00000390| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000003a0| 27 69 64 2e 74 65 78 69 | 6e 66 6f 27 5c 22 20 5c |'id.texi|nfo'\" \|
|000003b0| 28 33 38 31 37 36 20 63 | 68 61 72 61 63 74 65 72 |(38176 c|haracter|
|000003c0| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|000003d0| 20 3e 27 69 64 2e 74 65 | 78 69 6e 66 6f 27 20 3c | >'id.te|xinfo' <|
|000003e0| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|000003f0| 5c 69 6e 70 75 74 20 74 | 65 78 69 6e 66 6f 20 20 |\input t|exinfo |
|00000400| 20 40 63 20 2d 2a 2d 74 | 65 78 69 6e 66 6f 2d 2a | @c -*-t|exinfo-*|
|00000410| 2d 0a 58 40 63 6f 6d 6d | 65 6e 74 20 25 2a 2a 73 |-.X@comm|ent %**s|
|00000420| 74 61 72 74 20 6f 66 20 | 68 65 61 64 65 72 20 28 |tart of |header (|
|00000430| 54 68 69 73 20 69 73 20 | 66 6f 72 20 72 75 6e 6e |This is |for runn|
|00000440| 69 6e 67 20 54 65 78 69 | 6e 66 6f 20 6f 6e 20 61 |ing Texi|nfo on a|
|00000450| 20 72 65 67 69 6f 6e 2e | 29 0a 58 40 73 65 74 66 | region.|).X@setf|
|00000460| 69 6c 65 6e 61 6d 65 20 | 69 64 2d 69 6e 66 6f 0a |ilename |id-info.|
|00000470| 58 40 73 65 74 74 69 74 | 6c 65 20 54 68 65 20 49 |X@settit|le The I|
|00000480| 44 20 44 61 74 61 62 61 | 73 65 0a 58 40 73 65 74 |D Databa|se.X@set|
|00000490| 63 68 61 70 74 65 72 6e | 65 77 70 61 67 65 20 6f |chaptern|ewpage o|
|000004a0| 64 64 0a 58 40 63 6f 6d | 6d 65 6e 74 20 25 2a 2a |dd.X@com|ment %**|
|000004b0| 65 6e 64 20 6f 66 20 68 | 65 61 64 65 72 20 28 54 |end of h|eader (T|
|000004c0| 68 69 73 20 69 73 20 66 | 6f 72 20 72 75 6e 6e 69 |his is f|or runni|
|000004d0| 6e 67 20 54 65 78 69 6e | 66 6f 20 6f 6e 20 61 20 |ng Texin|fo on a |
|000004e0| 72 65 67 69 6f 6e 2e 29 | 0a 58 0a 58 40 69 66 69 |region.)|.X.X@ifi|
|000004f0| 6e 66 6f 0a 58 54 68 69 | 73 20 6d 61 6e 75 61 6c |nfo.XThi|s manual|
|00000500| 20 69 73 20 6e 6f 74 20 | 63 6f 70 79 72 69 67 68 | is not |copyrigh|
|00000510| 74 65 64 2c 20 62 75 74 | 20 66 6f 72 20 79 6f 75 |ted, but| for you|
|00000520| 72 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 74 |r inform|ation it|
|00000530| 20 77 61 73 20 77 72 69 | 74 74 65 6e 0a 58 69 6e | was wri|tten.Xin|
|00000540| 20 31 39 39 31 20 62 79 | 20 54 6f 6d 20 48 6f 72 | 1991 by| Tom Hor|
|00000550| 73 6c 65 79 2e 0a 58 0a | 58 41 73 20 66 61 72 20 |sley..X.|XAs far |
|00000560| 61 73 20 49 20 61 6d 20 | 63 6f 6e 63 65 72 6e 65 |as I am |concerne|
|00000570| 64 2c 20 74 68 69 73 20 | 6d 61 6e 75 61 6c 20 69 |d, this |manual i|
|00000580| 73 20 69 6e 20 74 68 65 | 20 70 75 62 6c 69 63 20 |s in the| public |
|00000590| 64 6f 6d 61 69 6e 2e 20 | 4e 6f 74 20 65 76 65 6e |domain. |Not even|
|000005a0| 0a 58 63 6f 70 79 6c 65 | 66 74 20 61 70 70 6c 69 |.Xcopyle|ft appli|
|000005b0| 65 73 2e 20 49 66 20 79 | 6f 75 20 74 68 69 6e 6b |es. If y|ou think|
|000005c0| 20 79 6f 75 20 63 61 6e | 20 73 65 6c 6c 20 69 74 | you can| sell it|
|000005d0| 20 66 6f 72 20 61 20 70 | 72 6f 66 69 74 2c 20 67 | for a p|rofit, g|
|000005e0| 6f 20 72 69 67 68 74 0a | 58 61 68 65 61 64 2e 2e |o right.|Xahead..|
|000005f0| 2e 0a 58 0a 58 54 68 65 | 20 61 62 6f 76 65 20 6e |..X.XThe| above n|
|00000600| 6f 6e 2d 63 6f 70 79 72 | 69 67 68 74 20 6e 6f 74 |on-copyr|ight not|
|00000610| 69 63 65 20 61 70 70 6c | 69 65 73 20 6f 6e 6c 79 |ice appl|ies only|
|00000620| 20 74 6f 20 74 68 69 73 | 20 6d 61 6e 75 61 6c 2c | to this| manual,|
|00000630| 20 72 65 66 65 72 20 74 | 6f 20 74 68 65 0a 58 73 | refer t|o the.Xs|
|00000640| 6f 75 72 63 65 20 63 6f | 64 65 20 66 6f 72 20 69 |ource co|de for i|
|00000650| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 6f 6e 20 74 68 |nformati|on on th|
|00000660| 65 20 63 6f 70 79 72 69 | 67 68 74 20 73 74 61 74 |e copyri|ght stat|
|00000670| 75 73 20 28 69 66 20 61 | 6e 79 29 20 6f 66 20 74 |us (if a|ny) of t|
|00000680| 68 65 20 66 69 6c 65 73 | 2e 0a 58 0a 58 54 68 65 |he files|..X.XThe|
|00000690| 20 69 64 2d 69 6e 66 6f | 20 66 69 6c 65 20 66 6f | id-info| file fo|
|000006a0| 72 20 74 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 20 |r this d|ocument |
|000006b0| 6d 61 79 20 62 65 20 63 | 72 65 61 74 65 64 20 75 |may be c|reated u|
|000006c0| 73 69 6e 67 20 74 68 65 | 20 6d 61 6b 65 69 6e 66 |sing the| makeinf|
|000006d0| 6f 2e 63 0a 58 70 72 6f | 67 72 61 6d 20 72 65 6c |o.c.Xpro|gram rel|
|000006e0| 65 61 73 65 20 77 69 74 | 68 20 74 68 65 20 32 2e |ease wit|h the 2.|
|000006f0| 33 32 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |32 versi|on of th|
|00000700| 65 20 74 65 78 69 6e 66 | 6f 2e 74 65 78 20 6d 61 |e texinf|o.tex ma|
|00000710| 63 72 6f 73 2e 20 44 75 | 65 20 74 6f 0a 58 74 68 |cros. Du|e to.Xth|
|00000720| 65 20 65 78 74 65 6e 73 | 69 76 65 20 75 73 65 20 |e extens|ive use |
|00000730| 6f 66 20 76 61 72 69 6f | 75 73 20 64 65 66 69 6e |of vario|us defin|
|00000740| 69 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 73 20 61 |ition co|mmands a|
|00000750| 6e 64 20 6e 65 73 74 65 | 64 20 63 6f 6e 73 74 72 |nd neste|d constr|
|00000760| 75 63 74 73 0a 58 64 6f | 6e 27 74 20 65 78 70 65 |ucts.Xdo|n't expe|
|00000770| 63 74 20 74 6f 20 67 65 | 74 20 61 20 67 6f 6f 64 |ct to ge|t a good|
|00000780| 20 69 6e 66 6f 20 66 69 | 6c 65 20 77 69 74 68 20 | info fi|le with |
|00000790| 74 65 78 69 6e 66 6f 2d | 66 6f 72 6d 61 74 2d 62 |texinfo-|format-b|
|000007a0| 75 66 66 65 72 20 6f 72 | 20 76 65 72 79 0a 58 65 |uffer or| very.Xe|
|000007b0| 61 72 6c 79 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |arly ver|sions of|
|000007c0| 20 6d 61 6b 65 69 6e 66 | 6f 2e 63 2e 0a 58 0a 58 | makeinf|o.c..X.X|
|000007d0| 49 20 6f 62 74 61 69 6e | 65 64 20 74 68 65 20 74 |I obtain|ed the t|
|000007e0| 65 78 69 6e 66 6f 2e 74 | 65 78 20 6d 61 63 72 6f |exinfo.t|ex macro|
|000007f0| 73 20 61 6e 64 20 74 68 | 65 20 6d 61 6b 65 69 6e |s and th|e makein|
|00000800| 66 6f 2e 63 20 66 69 6c | 65 20 66 72 6f 6d 20 74 |fo.c fil|e from t|
|00000810| 68 65 0a 58 66 69 6c 65 | 20 70 75 62 2f 67 6e 75 |he.Xfile| pub/gnu|
|00000820| 2f 74 65 78 69 6e 66 6f | 32 2e 74 61 72 2e 5a 20 |/texinfo|2.tar.Z |
|00000830| 6f 6e 20 70 72 65 70 2e | 61 69 2e 6d 69 74 2e 65 |on prep.|ai.mit.e|
|00000840| 64 75 2e 0a 58 40 65 6e | 64 20 69 66 69 6e 66 6f |du..X@en|d ifinfo|
|00000850| 0a 58 0a 58 40 74 69 74 | 6c 65 70 61 67 65 0a 58 |.X.X@tit|lepage.X|
|00000860| 40 74 69 74 6c 65 20 54 | 68 65 20 49 44 20 44 61 |@title T|he ID Da|
|00000870| 74 61 62 61 73 65 0a 58 | 40 73 75 62 74 69 74 6c |tabase.X|@subtitl|
|00000880| 65 20 6d 6b 69 64 20 61 | 6e 64 20 66 72 69 65 6e |e mkid a|nd frien|
|00000890| 64 73 0a 58 40 73 75 62 | 74 69 74 6c 65 20 6c 69 |ds.X@sub|title li|
|000008a0| 64 2c 20 67 69 64 2c 20 | 61 69 64 2c 20 65 69 64 |d, gid, |aid, eid|
|000008b0| 2c 20 70 69 64 2c 20 69 | 69 64 0a 58 40 61 75 74 |, pid, i|id.X@aut|
|000008c0| 68 6f 72 20 54 6f 6d 20 | 48 6f 72 73 6c 65 79 0a |hor Tom |Horsley.|
|000008d0| 58 0a 58 40 70 61 67 65 | 0a 58 40 76 73 6b 69 70 |X.X@page|.X@vskip|
|000008e0| 20 30 70 74 20 70 6c 75 | 73 20 31 66 69 6c 6c 6c | 0pt plu|s 1filll|
|000008f0| 0a 58 54 68 69 73 20 6d | 61 6e 75 61 6c 20 69 73 |.XThis m|anual is|
|00000900| 20 6e 6f 74 20 63 6f 70 | 79 72 69 67 68 74 65 64 | not cop|yrighted|
|00000910| 2c 20 62 75 74 20 66 6f | 72 20 79 6f 75 72 20 69 |, but fo|r your i|
|00000920| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 74 20 77 61 |nformati|on it wa|
|00000930| 73 20 77 72 69 74 74 65 | 6e 0a 58 69 6e 20 31 39 |s writte|n.Xin 19|
|00000940| 39 31 20 62 79 20 54 6f | 6d 20 48 6f 72 73 6c 65 |91 by To|m Horsle|
|00000950| 79 2e 0a 58 0a 58 41 73 | 20 66 61 72 20 61 73 20 |y..X.XAs| far as |
|00000960| 49 20 61 6d 20 63 6f 6e | 63 65 72 6e 65 64 2c 20 |I am con|cerned, |
|00000970| 74 68 69 73 20 6d 61 6e | 75 61 6c 20 69 73 20 69 |this man|ual is i|
|00000980| 6e 20 74 68 65 20 70 75 | 62 6c 69 63 20 64 6f 6d |n the pu|blic dom|
|00000990| 61 69 6e 2e 20 4e 6f 74 | 20 65 76 65 6e 0a 58 63 |ain. Not| even.Xc|
|000009a0| 6f 70 79 6c 65 66 74 20 | 61 70 70 6c 69 65 73 2e |opyleft |applies.|
|000009b0| 20 49 66 20 79 6f 75 20 | 74 68 69 6e 6b 20 79 6f | If you |think yo|
|000009c0| 75 20 63 61 6e 20 73 65 | 6c 6c 20 69 74 20 66 6f |u can se|ll it fo|
|000009d0| 72 20 61 20 70 72 6f 66 | 69 74 2c 20 67 6f 20 72 |r a prof|it, go r|
|000009e0| 69 67 68 74 0a 58 61 68 | 65 61 64 2e 2e 2e 0a 58 |ight.Xah|ead....X|
|000009f0| 0a 58 54 68 65 20 61 62 | 6f 76 65 20 6e 6f 6e 2d |.XThe ab|ove non-|
|00000a00| 63 6f 70 79 72 69 67 68 | 74 20 6e 6f 74 69 63 65 |copyrigh|t notice|
|00000a10| 20 61 70 70 6c 69 65 73 | 20 6f 6e 6c 79 20 74 6f | applies| only to|
|00000a20| 20 74 68 69 73 20 6d 61 | 6e 75 61 6c 2c 20 72 65 | this ma|nual, re|
|00000a30| 66 65 72 20 74 6f 20 74 | 68 65 20 73 6f 75 72 63 |fer to t|he sourc|
|00000a40| 65 0a 58 63 6f 64 65 20 | 66 6f 72 20 69 6e 66 6f |e.Xcode |for info|
|00000a50| 72 6d 61 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 63 |rmation |on the c|
|00000a60| 6f 70 79 72 69 67 68 74 | 20 73 74 61 74 75 73 20 |opyright| status |
|00000a70| 28 69 66 20 61 6e 79 29 | 20 6f 66 20 74 68 65 20 |(if any)| of the |
|00000a80| 66 69 6c 65 73 2e 0a 58 | 0a 58 54 68 69 73 20 64 |files..X|.XThis d|
|00000a90| 6f 63 75 6d 65 6e 74 20 | 77 61 73 20 70 72 65 70 |ocument |was prep|
|00000aa0| 61 72 65 64 20 75 73 69 | 6e 67 20 76 65 72 73 69 |ared usi|ng versi|
|00000ab0| 6f 6e 20 32 2e 33 32 20 | 6f 66 20 74 68 65 20 40 |on 2.32 |of the @|
|00000ac0| 66 69 6c 65 7b 74 65 78 | 69 6e 66 6f 2e 74 65 78 |file{tex|info.tex|
|00000ad0| 7d 0a 58 6d 61 63 72 6f | 20 70 61 63 6b 61 67 65 |}.Xmacro| package|
|00000ae0| 2c 20 62 75 74 20 49 20 | 73 75 73 70 65 63 74 20 |, but I |suspect |
|00000af0| 61 6e 79 20 76 65 72 73 | 69 6f 6e 20 67 72 65 61 |any vers|ion grea|
|00000b00| 74 65 72 20 6f 72 20 65 | 71 75 61 6c 20 74 6f 20 |ter or e|qual to |
|00000b10| 32 2e 30 20 77 69 6c 6c | 20 77 6f 72 6b 2e 0a 58 |2.0 will| work..X|
|00000b20| 40 65 6e 64 20 74 69 74 | 6c 65 70 61 67 65 0a 58 |@end tit|lepage.X|
|00000b30| 0a 58 40 6e 6f 64 65 20 | 54 6f 70 2c 20 4f 76 65 |.X@node |Top, Ove|
|00000b40| 72 76 69 65 77 2c 20 28 | 64 69 72 29 2c 20 28 64 |rview, (|dir), (d|
|00000b50| 69 72 29 0a 58 0a 58 40 | 6d 65 6e 75 0a 58 2a 20 |ir).X.X@|menu.X* |
|00000b60| 4f 76 65 72 76 69 65 77 | 3a 3a 20 20 20 20 20 20 |Overview|:: |
|00000b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 57 68 | | Wh|
|00000b80| 61 74 20 69 73 20 61 6e | 20 49 44 20 64 61 74 61 |at is an| ID data|
|00000b90| 62 61 73 65 20 61 6e 64 | 20 77 68 61 74 20 74 6f |base and| what to|
|00000ba0| 6f 6c 73 20 6d 61 6e 69 | 70 75 6c 61 74 65 20 69 |ols mani|pulate i|
|00000bb0| 74 3f 0a 58 2a 20 4d 6b | 69 64 3a 3a 20 20 20 20 |t?.X* Mk|id:: |
|00000bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bd0| 20 20 20 20 4d 6b 69 64 | 0a 58 2a 20 44 61 74 61 | Mkid|.X* Data|
|00000be0| 62 61 73 65 20 51 75 65 | 72 79 20 54 6f 6f 6c 73 |base Que|ry Tools|
|00000bf0| 3a 3a 20 20 20 20 20 20 | 20 20 44 61 74 61 62 61 |:: | Databa|
|00000c00| 73 65 20 51 75 65 72 79 | 20 54 6f 6f 6c 73 0a 58 |se Query| Tools.X|
|00000c10| 2a 20 49 69 64 3a 3a 20 | 20 20 20 20 20 20 20 20 |* Iid:: | |
|00000c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c30| 49 69 64 0a 58 2a 20 4f | 74 68 65 72 20 54 6f 6f |Iid.X* O|ther Too|
|00000c40| 6c 73 3a 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ls:: | |
|00000c50| 20 20 20 20 20 4f 74 68 | 65 72 20 54 6f 6f 6c 73 | Oth|er Tools|
|00000c60| 0a 58 2a 20 43 6f 6d 6d | 61 6e 64 20 49 6e 64 65 |.X* Comm|and Inde|
|00000c70| 78 3a 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |x:: | |
|00000c80| 20 20 43 6f 6d 6d 61 6e | 64 20 49 6e 64 65 78 0a | Comman|d Index.|
|00000c90| 58 40 65 6e 64 20 6d 65 | 6e 75 0a 58 0a 58 40 6e |X@end me|nu.X.X@n|
|00000ca0| 6f 64 65 20 4f 76 65 72 | 76 69 65 77 2c 20 4d 6b |ode Over|view, Mk|
|00000cb0| 69 64 2c 20 54 6f 70 2c | 20 54 6f 70 0a 58 40 63 |id, Top,| Top.X@c|
|00000cc0| 68 61 70 74 65 72 20 4f | 76 65 72 76 69 65 77 0a |hapter O|verview.|
|00000cd0| 58 40 63 69 6e 64 65 78 | 20 52 65 66 65 72 65 6e |X@cindex| Referen|
|00000ce0| 63 65 20 74 6f 20 46 69 | 72 73 74 20 43 68 61 70 |ce to Fi|rst Chap|
|00000cf0| 74 65 72 0a 58 41 6e 20 | 49 44 20 64 61 74 61 62 |ter.XAn |ID datab|
|00000d00| 61 73 65 20 69 73 20 73 | 69 6d 70 6c 79 20 61 20 |ase is s|imply a |
|00000d10| 66 69 6c 65 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |file con|taining |
|00000d20| 61 20 6c 69 73 74 20 6f | 66 20 66 69 6c 65 20 6e |a list o|f file n|
|00000d30| 61 6d 65 73 2c 20 61 20 | 6c 69 73 74 20 6f 66 0a |ames, a |list of.|
|00000d40| 58 69 64 65 6e 74 69 66 | 69 65 72 73 2c 20 61 6e |Xidentif|iers, an|
|00000d50| 64 20 61 20 62 69 6e 61 | 72 79 20 72 65 6c 61 74 |d a bina|ry relat|
|00000d60| 69 6f 6e 20 28 73 74 6f | 72 65 64 20 61 73 20 61 |ion (sto|red as a|
|00000d70| 20 62 69 74 20 6d 61 74 | 72 69 78 29 20 69 6e 64 | bit mat|rix) ind|
|00000d80| 69 63 61 74 69 6e 67 20 | 77 68 69 63 68 0a 58 6f |icating |which.Xo|
|00000d90| 66 20 74 68 65 20 69 64 | 65 6e 74 69 66 69 65 72 |f the id|entifier|
|00000da0| 73 20 61 70 70 65 61 72 | 20 69 6e 20 65 61 63 68 |s appear| in each|
|00000db0| 20 66 69 6c 65 2e 20 20 | 57 69 74 68 20 74 68 69 | file. |With thi|
|00000dc0| 73 20 64 61 74 61 62 61 | 73 65 20 61 6e 64 20 73 |s databa|se and s|
|00000dd0| 6f 6d 65 20 74 6f 6f 6c | 73 0a 58 74 6f 20 6d 61 |ome tool|s.Xto ma|
|00000de0| 6e 69 70 75 6c 61 74 65 | 20 74 68 65 20 64 61 74 |nipulate| the dat|
|00000df0| 61 2c 20 61 20 68 6f 73 | 74 20 6f 66 20 74 61 73 |a, a hos|t of tas|
|00000e00| 6b 73 20 62 65 63 6f 6d | 65 20 73 69 6d 70 6c 65 |ks becom|e simple|
|00000e10| 72 20 61 6e 64 20 66 61 | 73 74 65 72 2e 20 59 6f |r and fa|ster. Yo|
|00000e20| 75 20 63 61 6e 0a 58 40 | 63 6f 64 65 7b 67 72 65 |u can.X@|code{gre|
|00000e30| 70 7d 20 74 68 72 6f 75 | 67 68 20 68 75 6e 64 72 |p} throu|gh hundr|
|00000e40| 65 64 73 20 6f 66 20 66 | 69 6c 65 73 20 66 6f 72 |eds of f|iles for|
|00000e50| 20 61 20 6e 61 6d 65 2c | 20 73 6b 69 70 70 69 6e | a name,| skippin|
|00000e60| 67 20 74 68 65 20 66 69 | 6c 65 73 20 74 68 61 74 |g the fi|les that|
|00000e70| 0a 58 64 6f 6e 27 74 20 | 63 6f 6e 74 61 69 6e 20 |.Xdon't |contain |
|00000e80| 74 68 65 20 6e 61 6d 65 | 2e 20 20 59 6f 75 20 63 |the name|. You c|
|00000e90| 61 6e 20 73 65 61 72 63 | 68 20 66 6f 72 20 61 6c |an searc|h for al|
|00000ea0| 6c 20 74 68 65 20 6d 65 | 6d 6f 73 20 63 6f 6e 74 |l the me|mos cont|
|00000eb0| 61 69 6e 69 6e 67 0a 58 | 72 65 66 65 72 65 6e 63 |aining.X|referenc|
|00000ec0| 65 73 20 74 6f 20 61 20 | 70 72 6f 6a 65 63 74 2e |es to a |project.|
|00000ed0| 20 20 59 6f 75 20 63 61 | 6e 20 65 64 69 74 20 65 | You ca|n edit e|
|00000ee0| 76 65 72 79 20 66 69 6c | 65 20 74 68 61 74 20 63 |very fil|e that c|
|00000ef0| 61 6c 6c 73 20 73 6f 6d | 65 20 66 75 6e 63 74 69 |alls som|e functi|
|00000f00| 6f 6e 2c 0a 58 61 64 64 | 69 6e 67 20 61 20 6e 65 |on,.Xadd|ing a ne|
|00000f10| 77 20 72 65 71 75 69 72 | 65 64 20 61 72 67 75 6d |w requir|ed argum|
|00000f20| 65 6e 74 2e 20 41 6e 79 | 6f 6e 65 20 77 69 74 68 |ent. Any|one with|
|00000f30| 20 61 20 6c 61 72 67 65 | 20 73 6f 66 74 77 61 72 | a large| softwar|
|00000f40| 65 20 70 72 6f 6a 65 63 | 74 20 74 6f 0a 58 6d 61 |e projec|t to.Xma|
|00000f50| 69 6e 74 61 69 6e 2c 20 | 6f 72 20 61 20 6c 61 72 |intain, |or a lar|
|00000f60| 67 65 20 73 65 74 20 6f | 66 20 74 65 78 74 20 66 |ge set o|f text f|
|00000f70| 69 6c 65 73 20 74 6f 20 | 6f 72 67 61 6e 69 7a 65 |iles to |organize|
|00000f80| 20 63 61 6e 20 62 65 6e | 65 66 69 74 20 66 72 6f | can ben|efit fro|
|00000f90| 6d 20 74 68 65 20 49 44 | 0a 58 64 61 74 61 62 61 |m the ID|.Xdataba|
|00000fa0| 73 65 20 61 6e 64 20 74 | 68 65 20 74 6f 6f 6c 73 |se and t|he tools|
|00000fb0| 20 74 68 61 74 20 6d 61 | 6e 69 70 75 6c 61 74 65 | that ma|nipulate|
|00000fc0| 20 69 74 2e 0a 58 0a 58 | 54 68 65 72 65 20 61 72 | it..X.X|There ar|
|00000fd0| 65 20 73 65 76 65 72 61 | 6c 20 70 72 6f 67 72 61 |e severa|l progra|
|00000fe0| 6d 73 20 69 6e 20 74 68 | 65 20 49 44 20 66 61 6d |ms in th|e ID fam|
|00000ff0| 69 6c 79 2e 20 20 54 68 | 65 20 40 63 6f 64 65 7b |ily. Th|e @code{|
|00001000| 6d 6b 69 64 7d 20 70 72 | 6f 67 72 61 6d 0a 58 73 |mkid} pr|ogram.Xs|
|00001010| 63 61 6e 73 20 74 68 65 | 20 66 69 6c 65 73 2c 20 |cans the| files, |
|00001020| 66 69 6e 64 73 20 74 68 | 65 20 69 64 65 6e 74 69 |finds th|e identi|
|00001030| 66 69 65 72 73 20 61 6e | 64 20 62 75 69 6c 64 73 |fiers an|d builds|
|00001040| 20 74 68 65 20 49 44 20 | 64 61 74 61 62 61 73 65 | the ID |database|
|00001050| 2e 20 20 54 68 65 0a 58 | 40 63 6f 64 65 7b 6c 69 |. The.X|@code{li|
|00001060| 64 7d 20 61 6e 64 20 40 | 63 6f 64 65 7b 61 69 64 |d} and @|code{aid|
|00001070| 7d 20 74 6f 6f 6c 73 20 | 61 72 65 20 75 73 65 64 |} tools |are used|
|00001080| 20 74 6f 20 67 65 6e 65 | 72 61 74 65 20 6c 69 73 | to gene|rate lis|
|00001090| 74 73 20 6f 66 20 66 69 | 6c 65 20 6e 61 6d 65 73 |ts of fi|le names|
|000010a0| 0a 58 63 6f 6e 74 61 69 | 6e 69 6e 67 20 61 6e 20 |.Xcontai|ning an |
|000010b0| 69 64 65 6e 74 69 66 69 | 65 72 20 28 70 65 72 68 |identifi|er (perh|
|000010c0| 61 70 73 20 74 6f 20 72 | 65 63 6f 6d 70 69 6c 65 |aps to r|ecompile|
|000010d0| 20 65 76 65 72 79 20 66 | 69 6c 65 20 74 68 61 74 | every f|ile that|
|000010e0| 0a 58 72 65 66 65 72 65 | 6e 63 65 73 20 61 20 6d |.Xrefere|nces a m|
|000010f0| 61 63 72 6f 20 77 68 69 | 63 68 20 6a 75 73 74 20 |acro whi|ch just |
|00001100| 63 68 61 6e 67 65 64 29 | 2e 20 54 68 65 20 40 63 |changed)|. The @c|
|00001110| 6f 64 65 7b 65 69 64 7d | 20 70 72 6f 67 72 61 6d |ode{eid}| program|
|00001120| 20 77 69 6c 6c 0a 58 69 | 6e 76 6f 6b 65 20 61 6e | will.Xi|nvoke an|
|00001130| 20 65 64 69 74 6f 72 20 | 6f 6e 20 65 61 63 68 20 | editor |on each |
|00001140| 6f 66 20 74 68 65 20 66 | 69 6c 65 73 20 63 6f 6e |of the f|iles con|
|00001150| 74 61 69 6e 69 6e 67 20 | 61 6e 20 69 64 65 6e 74 |taining |an ident|
|00001160| 69 66 69 65 72 20 61 6e | 64 20 74 68 65 0a 58 40 |ifier an|d the.X@|
|00001170| 63 6f 64 65 7b 67 69 64 | 7d 20 70 72 6f 67 72 61 |code{gid|} progra|
|00001180| 6d 20 77 69 6c 6c 20 40 | 63 6f 64 65 7b 67 72 65 |m will @|code{gre|
|00001190| 70 7d 20 66 6f 72 20 61 | 6e 20 69 64 65 6e 74 69 |p} for a|n identi|
|000011a0| 66 69 65 72 20 69 6e 20 | 74 68 65 20 73 75 62 73 |fier in |the subs|
|000011b0| 65 74 20 6f 66 0a 58 66 | 69 6c 65 73 20 6b 6e 6f |et of.Xf|iles kno|
|000011c0| 77 6e 20 74 6f 20 63 6f | 6e 74 61 69 6e 20 69 74 |wn to co|ntain it|
|000011d0| 2e 20 20 54 68 65 20 40 | 63 6f 64 65 7b 70 69 64 |. The @|code{pid|
|000011e0| 7d 20 74 6f 6f 6c 20 69 | 73 20 75 73 65 64 20 74 |} tool i|s used t|
|000011f0| 6f 20 71 75 65 72 79 20 | 74 68 65 0a 58 70 61 74 |o query |the.Xpat|
|00001200| 68 20 6e 61 6d 65 73 20 | 6f 66 20 74 68 65 20 66 |h names |of the f|
|00001210| 69 6c 65 73 20 69 6e 20 | 74 68 65 20 64 61 74 61 |iles in |the data|
|00001220| 62 61 73 65 20 28 72 61 | 74 68 65 72 20 74 68 61 |base (ra|ther tha|
|00001230| 6e 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 29 2e |n the co|ntents).|
|00001240| 0a 58 46 69 6e 61 6c 6c | 79 2c 20 74 68 65 20 40 |.XFinall|y, the @|
|00001250| 63 6f 64 65 7b 69 69 64 | 7d 20 74 6f 6f 6c 20 69 |code{iid|} tool i|
|00001260| 73 20 61 6e 20 69 6e 74 | 65 72 61 63 74 69 76 65 |s an int|eractive|
|00001270| 20 70 72 6f 67 72 61 6d | 20 73 75 70 70 6f 72 74 | program| support|
|00001280| 69 6e 67 0a 58 63 6f 6d | 70 6c 65 78 20 71 75 65 |ing.Xcom|plex que|
|00001290| 72 69 65 73 20 74 6f 20 | 69 6e 74 65 72 73 65 63 |ries to |intersec|
|000012a0| 74 20 61 6e 64 20 6a 6f | 69 6e 20 73 65 74 73 20 |t and jo|in sets |
|000012b0| 6f 66 20 66 69 6c 65 20 | 6e 61 6d 65 73 2e 0a 58 |of file |names..X|
|000012c0| 0a 58 40 6d 65 6e 75 0a | 58 2a 20 48 69 73 74 6f |.X@menu.|X* Histo|
|000012d0| 72 79 3a 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ry:: | |
|000012e0| 20 20 20 20 20 20 20 20 | 20 48 69 73 74 6f 72 79 | | History|
|000012f0| 0a 58 40 65 6e 64 20 6d | 65 6e 75 0a 58 0a 58 40 |.X@end m|enu.X.X@|
|00001300| 6e 6f 64 65 20 48 69 73 | 74 6f 72 79 2c 20 20 2c |node His|tory, ,|
|00001310| 20 4f 76 65 72 76 69 65 | 77 2c 20 4f 76 65 72 76 | Overvie|w, Overv|
|00001320| 69 65 77 0a 58 40 73 65 | 63 74 69 6f 6e 20 48 69 |iew.X@se|ction Hi|
|00001330| 73 74 6f 72 79 0a 58 4d | 6f 73 74 20 6f 66 20 74 |story.XM|ost of t|
|00001340| 68 65 20 49 44 20 70 72 | 6f 67 72 61 6d 73 20 77 |he ID pr|ograms w|
|00001350| 65 72 65 20 77 72 69 74 | 74 65 6e 20 62 79 20 47 |ere writ|ten by G|
|00001360| 72 65 67 20 4d 63 47 61 | 72 79 20 61 6e 64 20 66 |reg McGa|ry and f|
|00001370| 69 72 73 74 20 70 6f 73 | 74 65 64 20 74 6f 0a 58 |irst pos|ted to.X|
|00001380| 74 68 65 20 6e 65 74 20 | 69 6e 20 31 39 38 37 2e |the net |in 1987.|
|00001390| 20 53 69 6e 63 65 20 74 | 68 65 6e 20 73 65 76 65 | Since t|hen seve|
|000013a0| 72 61 6c 20 76 65 72 73 | 69 6f 6e 73 20 68 61 76 |ral vers|ions hav|
|000013b0| 65 20 64 69 76 65 72 67 | 65 64 20 66 72 6f 6d 20 |e diverg|ed from |
|000013c0| 74 68 65 0a 58 6f 72 69 | 67 69 6e 61 6c 20 73 6f |the.Xori|ginal so|
|000013d0| 75 72 63 65 2e 20 20 54 | 68 65 20 40 63 6f 64 65 |urce. T|he @code|
|000013e0| 7b 69 69 64 7d 20 70 72 | 6f 67 72 61 6d 20 77 61 |{iid} pr|ogram wa|
|000013f0| 73 20 77 72 69 74 74 65 | 6e 20 62 79 20 54 6f 6d |s writte|n by Tom|
|00001400| 20 48 6f 72 73 6c 65 79 | 20 61 74 0a 58 48 61 72 | Horsley| at.XHar|
|00001410| 72 69 73 2e 20 54 68 69 | 73 20 76 65 72 73 69 6f |ris. Thi|s versio|
|00001420| 6e 20 28 74 68 65 20 6f | 6e 65 20 79 6f 75 20 61 |n (the o|ne you a|
|00001430| 72 65 20 67 65 74 74 69 | 6e 67 20 77 69 74 68 20 |re getti|ng with |
|00001440| 74 68 69 73 20 64 6f 63 | 75 6d 65 6e 74 29 20 69 |this doc|ument) i|
|00001450| 73 0a 58 62 61 73 65 64 | 20 6f 6e 20 74 68 65 20 |s.Xbased| on the |
|00001460| 6c 61 74 65 73 74 20 73 | 6f 75 72 63 65 20 69 6e |latest s|ource in|
|00001470| 20 75 73 65 20 61 74 20 | 48 61 72 72 69 73 20 43 | use at |Harris C|
|00001480| 6f 6d 70 75 74 65 72 20 | 53 79 73 74 65 6d 73 20 |omputer |Systems |
|00001490| 44 69 76 69 73 69 6f 6e | 2e 0a 58 49 74 20 63 6f |Division|..XIt co|
|000014a0| 6e 74 61 69 6e 73 20 61 | 20 66 65 77 20 70 61 74 |ntains a| few pat|
|000014b0| 63 68 65 73 20 66 72 6f | 6d 20 6f 74 68 65 72 20 |ches fro|m other |
|000014c0| 73 6f 75 72 63 65 73 2c | 20 62 75 74 20 6e 6f 6e |sources,| but non|
|000014d0| 65 20 6f 66 20 74 68 65 | 20 6d 61 6a 6f 72 0a 58 |e of the| major.X|
|000014e0| 63 68 61 6e 67 65 73 20 | 6d 61 64 65 20 61 74 20 |changes |made at |
|000014f0| 6f 74 68 65 72 20 73 69 | 74 65 73 2e 20 54 68 69 |other si|tes. Thi|
|00001500| 73 20 72 65 6c 65 61 73 | 65 20 69 73 20 74 68 65 |s releas|e is the|
|00001510| 20 66 69 72 73 74 20 61 | 74 74 65 6d 70 74 20 74 | first a|ttempt t|
|00001520| 6f 20 73 74 61 72 74 0a | 58 74 68 65 20 70 72 6f |o start.|Xthe pro|
|00001530| 63 65 73 73 20 6f 66 20 | 6d 65 72 67 69 6e 67 20 |cess of |merging |
|00001540| 74 68 65 20 73 65 70 61 | 72 61 74 65 20 76 65 72 |the sepa|rate ver|
|00001550| 73 69 6f 6e 73 2e 0a 58 | 0a 58 41 20 70 72 65 2d |sions..X|.XA pre-|
|00001560| 72 65 6c 65 61 73 65 20 | 76 65 72 73 69 6f 6e 20 |release |version |
|00001570| 6f 66 20 40 63 6f 64 65 | 7b 6d 6b 69 64 7d 20 77 |of @code|{mkid} w|
|00001580| 61 73 20 70 6f 73 74 65 | 64 20 74 6f 20 40 66 69 |as poste|d to @fi|
|00001590| 6c 65 7b 61 6c 74 2e 73 | 6f 75 72 63 65 73 7d 0a |le{alt.s|ources}.|
|000015a0| 58 6e 65 61 72 20 74 68 | 65 20 65 6e 64 20 6f 66 |Xnear th|e end of|
|000015b0| 20 31 39 39 30 2e 20 41 | 74 20 74 68 61 74 20 74 | 1990. A|t that t|
|000015c0| 69 6d 65 20 49 20 6d 65 | 6e 74 69 6f 6e 65 64 20 |ime I me|ntioned |
|000015d0| 74 68 61 74 20 49 20 77 | 61 73 20 74 68 69 6e 6b |that I w|as think|
|000015e0| 69 6e 67 20 61 62 6f 75 | 74 0a 58 77 72 69 74 69 |ing abou|t.Xwriti|
|000015f0| 6e 67 20 61 20 74 65 78 | 69 6e 66 6f 20 6d 61 6e |ng a tex|info man|
|00001600| 75 61 6c 2e 20 49 20 67 | 6f 74 20 61 20 6c 6f 74 |ual. I g|ot a lot|
|00001610| 20 6f 66 20 65 6e 63 6f | 75 72 61 67 65 6d 65 6e | of enco|uragemen|
|00001620| 74 20 66 72 6f 6d 20 74 | 68 65 20 6e 65 74 20 74 |t from t|he net t|
|00001630| 6f 0a 58 64 6f 20 73 6f | 2c 20 61 6e 64 20 74 68 |o.Xdo so|, and th|
|00001640| 69 73 20 6d 61 6e 75 61 | 6c 20 69 73 20 74 68 65 |is manua|l is the|
|00001650| 20 72 65 73 75 6c 74 2e | 20 49 20 77 6f 75 6c 64 | result.| I would|
|00001660| 20 6c 69 6b 65 20 74 6f | 20 74 68 61 6e 6b 20 44 | like to| thank D|
|00001670| 6f 75 67 20 53 63 6f 66 | 69 65 6c 64 0a 58 61 6e |oug Scof|ield.Xan|
|00001680| 64 20 42 69 6c 6c 20 4c | 65 6f 6e 61 72 64 20 77 |d Bill L|eonard w|
|00001690| 68 6f 6d 20 49 20 64 72 | 61 67 6f 6f 6e 65 64 20 |hom I dr|agooned |
|000016a0| 69 6e 74 6f 20 68 65 6c | 70 69 6e 67 20 6d 65 20 |into hel|ping me |
|000016b0| 70 6f 6f 72 66 20 72 61 | 65 64 20 61 6e 64 0a 58 |poorf ra|ed and.X|
|000016c0| 65 64 69 74 20 2d 2d 2d | 20 74 68 65 79 20 66 6f |edit ---| they fo|
|000016d0| 75 6e 64 20 73 65 76 65 | 72 61 6c 20 70 72 6f 62 |und seve|ral prob|
|000016e0| 6c 65 6d 73 20 69 6e 20 | 74 68 65 20 69 6e 69 74 |lems in |the init|
|000016f0| 69 61 6c 20 76 65 72 73 | 69 6f 6e 2e 0a 58 0a 58 |ial vers|ion..X.X|
|00001700| 40 6e 6f 64 65 20 4d 6b | 69 64 2c 20 44 61 74 61 |@node Mk|id, Data|
|00001710| 62 61 73 65 20 51 75 65 | 72 79 20 54 6f 6f 6c 73 |base Que|ry Tools|
|00001720| 2c 20 4f 76 65 72 76 69 | 65 77 2c 20 54 6f 70 0a |, Overvi|ew, Top.|
|00001730| 58 40 63 68 61 70 74 65 | 72 20 4d 6b 69 64 0a 58 |X@chapte|r Mkid.X|
|00001740| 54 68 65 20 40 63 6f 64 | 65 7b 6d 6b 69 64 7d 20 |The @cod|e{mkid} |
|00001750| 70 72 6f 67 72 61 6d 20 | 62 75 69 6c 64 73 20 74 |program |builds t|
|00001760| 68 65 20 49 44 20 64 61 | 74 61 62 61 73 65 2e 20 |he ID da|tabase. |
|00001770| 54 6f 20 64 6f 20 74 68 | 69 73 20 69 74 20 6d 75 |To do th|is it mu|
|00001780| 73 74 20 73 63 61 6e 0a | 58 65 61 63 68 20 6f 66 |st scan.|Xeach of|
|00001790| 20 74 68 65 20 66 69 6c | 65 73 20 69 6e 63 6c 75 | the fil|es inclu|
|000017a0| 64 65 64 20 69 6e 20 74 | 68 65 20 64 61 74 61 62 |ded in t|he datab|
|000017b0| 61 73 65 2e 20 54 68 69 | 73 20 6f 66 74 65 6e 20 |ase. Thi|s often |
|000017c0| 74 61 6b 65 73 0a 58 71 | 75 69 74 65 20 61 20 77 |takes.Xq|uite a w|
|000017d0| 68 69 6c 65 2c 20 62 75 | 74 20 6f 6e 63 65 20 74 |hile, bu|t once t|
|000017e0| 68 65 20 77 6f 72 6b 20 | 69 73 20 64 6f 6e 65 20 |he work |is done |
|000017f0| 74 68 65 20 71 75 65 72 | 79 20 70 72 6f 67 72 61 |the quer|y progra|
|00001800| 6d 73 20 72 75 6e 20 76 | 65 72 79 0a 58 72 61 70 |ms run v|ery.Xrap|
|00001810| 69 64 6c 79 2e 0a 58 0a | 58 54 68 65 20 40 63 6f |idly..X.|XThe @co|
|00001820| 64 65 7b 6d 6b 69 64 7d | 20 70 72 6f 67 72 61 6d |de{mkid}| program|
|00001830| 20 6b 6e 6f 77 73 20 68 | 6f 77 20 74 6f 20 73 63 | knows h|ow to sc|
|00001840| 61 6e 20 61 20 76 61 72 | 69 65 74 79 20 6f 66 20 |an a var|iety of |
|00001850| 6f 66 20 66 69 6c 65 73 | 2e 20 46 6f 72 0a 58 65 |of files|. For.Xe|
|00001860| 78 61 6d 70 6c 65 2c 20 | 69 74 20 6b 6e 6f 77 73 |xample, |it knows|
|00001870| 20 68 6f 77 20 74 6f 20 | 73 6b 69 70 20 6f 76 65 | how to |skip ove|
|00001880| 72 20 63 6f 6d 6d 65 6e | 74 73 20 61 6e 64 20 73 |r commen|ts and s|
|00001890| 74 72 69 6e 67 73 20 69 | 6e 20 61 20 43 20 70 72 |trings i|n a C pr|
|000018a0| 6f 67 72 61 6d 2c 0a 58 | 6f 6e 6c 79 20 70 69 63 |ogram,.X|only pic|
|000018b0| 6b 69 6e 67 20 6f 75 74 | 20 74 68 65 20 69 64 65 |king out| the ide|
|000018c0| 6e 74 69 66 69 65 72 73 | 20 75 73 65 64 20 69 6e |ntifiers| used in|
|000018d0| 20 74 68 65 20 63 6f 64 | 65 2e 0a 58 0a 58 49 64 | the cod|e..X.XId|
|000018e0| 65 6e 74 69 66 69 65 72 | 73 20 61 72 65 20 6e 6f |entifier|s are no|
|000018f0| 74 20 74 68 65 20 6f 6e | 6c 79 20 74 68 69 6e 67 |t the on|ly thing|
|00001900| 20 69 6e 63 6c 75 64 65 | 64 20 69 6e 20 74 68 65 | include|d in the|
|00001910| 20 64 61 74 61 62 61 73 | 65 2e 0a 58 4e 75 6d 62 | databas|e..XNumb|
|00001920| 65 72 73 20 61 72 65 20 | 61 6c 73 6f 20 73 63 61 |ers are |also sca|
|00001930| 6e 6e 65 64 20 61 6e 64 | 20 69 6e 63 6c 75 64 65 |nned and| include|
|00001940| 64 20 69 6e 20 74 68 65 | 20 64 61 74 61 62 61 73 |d in the| databas|
|00001950| 65 20 69 6e 64 65 78 65 | 64 20 62 79 0a 58 74 68 |e indexe|d by.Xth|
|00001960| 65 69 72 20 62 69 6e 61 | 72 79 20 76 61 6c 75 65 |eir bina|ry value|
|00001970| 2e 20 53 69 6e 63 65 20 | 74 68 65 20 73 61 6d 65 |. Since |the same|
|00001980| 20 6e 75 6d 62 65 72 20 | 63 61 6e 20 62 65 20 77 | number |can be w|
|00001990| 72 69 74 74 65 6e 20 6d | 61 6e 79 0a 58 64 69 66 |ritten m|any.Xdif|
|000019a0| 66 65 72 65 6e 74 20 77 | 61 79 73 20 28 34 37 2c |ferent w|ays (47,|
|000019b0| 20 30 78 32 66 2c 20 30 | 35 37 20 69 6e 20 61 20 | 0x2f, 0|57 in a |
|000019c0| 43 20 70 72 6f 67 72 61 | 6d 20 66 6f 72 20 69 6e |C progra|m for in|
|000019d0| 73 74 61 6e 63 65 29 2c | 20 74 68 69 73 0a 58 66 |stance),| this.Xf|
|000019e0| 65 61 74 75 72 65 20 61 | 6c 6c 6f 77 73 20 79 6f |eature a|llows yo|
|000019f0| 75 20 74 6f 20 66 69 6e | 64 20 68 61 72 64 20 63 |u to fin|d hard c|
|00001a00| 6f 64 65 64 20 75 73 65 | 73 20 6f 66 20 63 6f 6e |oded use|s of con|
|00001a10| 73 74 61 6e 74 73 20 77 | 69 74 68 6f 75 74 0a 58 |stants w|ithout.X|
|00001a20| 72 65 67 61 72 64 20 74 | 6f 20 74 68 65 20 72 61 |regard t|o the ra|
|00001a30| 64 69 78 20 75 73 65 64 | 20 74 6f 20 73 70 65 63 |dix used| to spec|
|00001a40| 69 66 79 20 74 68 65 6d | 2e 0a 58 0a 58 41 6c 6c |ify them|..X.XAll|
|00001a50| 20 74 68 65 20 70 6c 61 | 63 65 73 20 69 6e 20 74 | the pla|ces in t|
|00001a60| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 20 77 68 65 |his docu|ment whe|
|00001a70| 72 65 20 69 64 65 6e 74 | 69 66 69 65 72 73 20 61 |re ident|ifiers a|
|00001a80| 72 65 20 77 72 69 74 74 | 65 6e 20 61 62 6f 75 74 |re writt|en about|
|00001a90| 0a 58 73 68 6f 75 6c 64 | 20 72 65 61 6c 6c 79 20 |.Xshould| really |
|00001aa0| 6d 65 6e 74 69 6f 6e 20 | 69 64 65 6e 74 69 66 69 |mention |identifi|
|00001ab0| 65 72 73 20 61 6e 64 20 | 6e 75 6d 62 65 72 73 2c |ers and |numbers,|
|00001ac0| 20 62 75 74 20 74 68 61 | 74 20 67 65 74 73 20 66 | but tha|t gets f|
|00001ad0| 61 69 72 6c 79 0a 58 63 | 6c 75 6d 73 79 20 61 66 |airly.Xc|lumsy af|
|00001ae0| 74 65 72 20 61 20 77 68 | 69 6c 65 2c 20 73 6f 20 |ter a wh|ile, so |
|00001af0| 79 6f 75 20 73 68 6f 75 | 6c 64 20 61 6c 77 61 79 |you shou|ld alway|
|00001b00| 73 20 6b 65 65 70 20 69 | 6e 20 6d 69 6e 64 20 74 |s keep i|n mind t|
|00001b10| 68 61 74 20 6e 75 6d 62 | 65 72 73 20 61 72 65 0a |hat numb|ers are.|
|00001b20| 58 69 6e 63 6c 75 64 65 | 64 20 69 6e 20 74 68 65 |Xinclude|d in the|
|00001b30| 20 64 61 74 61 62 61 73 | 65 20 61 73 20 77 65 6c | databas|e as wel|
|00001b40| 6c 20 61 73 20 69 64 65 | 6e 74 69 66 69 65 72 73 |l as ide|ntifiers|
|00001b50| 2e 0a 58 0a 58 40 6d 65 | 6e 75 0a 58 2a 20 4d 6b |..X.X@me|nu.X* Mk|
|00001b60| 69 64 20 43 6f 6d 6d 61 | 6e 64 20 4c 69 6e 65 20 |id Comma|nd Line |
|00001b70| 4f 70 74 69 6f 6e 73 3a | 3a 20 20 20 4d 6b 69 64 |Options:|: Mkid|
|00001b80| 20 43 6f 6d 6d 61 6e 64 | 20 4c 69 6e 65 20 4f 70 | Command| Line Op|
|00001b90| 74 69 6f 6e 73 0a 58 2a | 20 42 75 69 6c 74 69 6e |tions.X*| Builtin|
|00001ba0| 20 53 63 61 6e 6e 65 72 | 73 3a 3a 20 20 20 20 20 | Scanner|s:: |
|00001bb0| 20 20 20 20 20 20 20 42 | 75 69 6c 74 69 6e 20 53 | B|uiltin S|
|00001bc0| 63 61 6e 6e 65 72 73 0a | 58 2a 20 41 64 64 69 6e |canners.|X* Addin|
|00001bd0| 67 20 59 6f 75 72 20 4f | 77 6e 20 53 63 61 6e 6e |g Your O|wn Scann|
|00001be0| 65 72 3a 3a 20 20 20 20 | 20 41 64 64 69 6e 67 20 |er:: | Adding |
|00001bf0| 59 6f 75 72 20 4f 77 6e | 20 53 63 61 6e 6e 65 72 |Your Own| Scanner|
|00001c00| 0a 58 2a 20 4d 6b 69 64 | 20 45 78 61 6d 70 6c 65 |.X* Mkid| Example|
|00001c10| 73 3a 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s:: | |
|00001c20| 20 20 4d 6b 69 64 20 45 | 78 61 6d 70 6c 65 73 0a | Mkid E|xamples.|
|00001c30| 58 40 65 6e 64 20 6d 65 | 6e 75 0a 58 0a 58 40 6e |X@end me|nu.X.X@n|
|00001c40| 6f 64 65 20 4d 6b 69 64 | 20 43 6f 6d 6d 61 6e 64 |ode Mkid| Command|
|00001c50| 20 4c 69 6e 65 20 4f 70 | 74 69 6f 6e 73 2c 20 42 | Line Op|tions, B|
|00001c60| 75 69 6c 74 69 6e 20 53 | 63 61 6e 6e 65 72 73 2c |uiltin S|canners,|
|00001c70| 20 4d 6b 69 64 2c 20 4d | 6b 69 64 0a 58 40 73 65 | Mkid, M|kid.X@se|
|00001c80| 63 74 69 6f 6e 20 4d 6b | 69 64 20 43 6f 6d 6d 61 |ction Mk|id Comma|
|00001c90| 6e 64 20 4c 69 6e 65 20 | 4f 70 74 69 6f 6e 73 0a |nd Line |Options.|
|00001ca0| 58 40 64 65 66 66 6e 20 | 43 6f 6d 6d 61 6e 64 20 |X@deffn |Command |
|00001cb0| 6d 6b 69 64 20 5b 40 63 | 6f 64 65 7b 2d 76 7d 5d |mkid [@c|ode{-v}]|
|00001cc0| 20 5b 40 63 6f 64 65 7b | 2d 53 40 76 61 72 7b 73 | [@code{|-S@var{s|
|00001cd0| 63 61 6e 61 72 67 7d 7d | 5d 20 5b 40 63 6f 64 65 |canarg}}|] [@code|
|00001ce0| 7b 2d 61 40 76 61 72 7b | 61 72 67 2d 66 69 6c 65 |{-a@var{|arg-file|
|00001cf0| 7d 7d 5d 20 5b 40 63 6f | 64 65 7b 2d 7d 5d 20 5b |}}] [@co|de{-}] [|
|00001d00| 40 63 6f 64 65 7b 2d 66 | 40 76 61 72 7b 6f 75 74 |@code{-f|@var{out|
|00001d10| 2d 66 69 6c 65 7d 7d 5d | 20 5b 40 63 6f 64 65 7b |-file}}]| [@code{|
|00001d20| 2d 73 40 76 61 72 7b 64 | 69 72 65 63 74 6f 72 79 |-s@var{d|irectory|
|00001d30| 7d 7d 5d 20 5b 40 63 6f | 64 65 7b 2d 72 40 76 61 |}}] [@co|de{-r@va|
|00001d40| 72 7b 64 69 72 65 63 74 | 6f 72 79 7d 7d 5d 20 5b |r{direct|ory}}] [|
|00001d50| 40 63 6f 64 65 7b 2d 75 | 7d 5d 20 5b 40 63 6f 64 |@code{-u|}] [@cod|
|00001d60| 65 7b 66 69 6c 65 73 7d | 40 64 6f 74 73 7b 7d 5d |e{files}|@dots{}]|
|00001d70| 0a 58 40 74 61 62 6c 65 | 20 40 63 6f 64 65 0a 58 |.X@table| @code.X|
|00001d80| 40 69 74 65 6d 20 2d 76 | 0a 58 56 65 72 62 6f 73 |@item -v|.XVerbos|
|00001d90| 65 2e 20 4d 6b 69 64 20 | 74 65 6c 6c 73 20 79 6f |e. Mkid |tells yo|
|00001da0| 75 20 61 73 20 69 74 20 | 73 63 61 6e 73 20 65 61 |u as it |scans ea|
|00001db0| 63 68 20 66 69 6c 65 20 | 61 6e 64 20 69 6e 64 69 |ch file |and indi|
|00001dc0| 63 61 74 65 73 20 77 68 | 69 63 68 20 73 63 61 6e |cates wh|ich scan|
|00001dd0| 6e 65 72 0a 58 69 74 20 | 69 73 20 75 73 69 6e 67 |ner.Xit |is using|
|00001de0| 2e 20 49 74 20 61 6c 73 | 6f 20 73 75 6d 6d 61 72 |. It als|o summar|
|00001df0| 69 7a 65 73 20 73 6f 6d | 65 20 73 74 61 74 69 73 |izes som|e statis|
|00001e00| 74 69 63 73 20 61 62 6f | 75 74 20 74 68 65 20 64 |tics abo|ut the d|
|00001e10| 61 74 61 62 61 73 65 20 | 61 74 0a 58 74 68 65 20 |atabase |at.Xthe |
|00001e20| 65 6e 64 2e 0a 58 40 69 | 74 65 6d 20 2d 53 40 76 |end..X@i|tem -S@v|
|00001e30| 61 72 7b 73 63 61 6e 61 | 72 67 7d 0a 58 54 68 65 |ar{scana|rg}.XThe|
|00001e40| 20 40 63 6f 64 65 7b 2d | 53 7d 20 6f 70 74 69 6f | @code{-|S} optio|
|00001e50| 6e 20 69 73 20 75 73 65 | 64 20 74 6f 20 73 70 65 |n is use|d to spe|
|00001e60| 63 69 66 79 20 61 72 67 | 75 6d 65 6e 74 73 20 74 |cify arg|uments t|
|00001e70| 6f 20 74 68 65 20 76 61 | 72 69 6f 75 73 20 6c 61 |o the va|rious la|
|00001e80| 6e 67 75 61 67 65 0a 58 | 73 63 61 6e 6e 65 72 73 |nguage.X|scanners|
|00001e90| 2e 20 40 78 72 65 66 7b | 53 63 61 6e 6e 65 72 20 |. @xref{|Scanner |
|00001ea0| 41 72 67 75 6d 65 6e 74 | 73 7d 2c 20 66 6f 72 20 |Argument|s}, for |
|00001eb0| 64 65 74 61 69 6c 73 2e | 0a 58 40 69 74 65 6d 20 |details.|.X@item |
|00001ec0| 2d 61 40 76 61 72 7b 61 | 72 67 2d 66 69 6c 65 7d |-a@var{a|rg-file}|
|00001ed0| 0a 58 4e 61 6d 65 20 61 | 20 66 69 6c 65 20 63 6f |.XName a| file co|
|00001ee0| 6e 74 61 69 6e 69 6e 67 | 20 61 64 64 69 74 69 6f |ntaining| additio|
|00001ef0| 6e 61 6c 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |nal comm|and line|
|00001f00| 20 61 72 67 75 6d 65 6e | 74 73 20 28 6f 6e 65 20 | argumen|ts (one |
|00001f10| 70 65 72 20 6c 69 6e 65 | 29 2e 20 54 68 69 73 0a |per line|). This.|
|00001f20| 58 6d 61 79 20 62 65 20 | 75 73 65 64 20 74 6f 20 |Xmay be |used to |
|00001f30| 73 70 65 63 69 66 79 20 | 6c 69 73 74 73 20 6f 66 |specify |lists of|
|00001f40| 20 66 69 6c 65 20 6e 61 | 6d 65 73 20 6c 6f 6e 67 | file na|mes long|
|00001f50| 65 72 20 74 68 61 6e 20 | 77 69 6c 6c 20 66 69 74 |er than |will fit|
|00001f60| 20 6f 6e 20 61 20 63 6f | 6d 6d 61 6e 64 0a 58 6c | on a co|mmand.Xl|
|00001f70| 69 6e 65 2e 0a 58 40 69 | 74 65 6d 20 2d 0a 58 41 |ine..X@i|tem -.XA|
|00001f80| 20 73 69 6d 70 6c 65 20 | 40 63 6f 64 65 7b 2d 7d | simple |@code{-}|
|00001f90| 20 62 79 20 69 74 73 65 | 6c 66 20 6d 65 61 6e 73 | by itse|lf means|
|00001fa0| 20 72 65 61 64 20 61 72 | 67 75 6d 65 6e 74 73 20 | read ar|guments |
|00001fb0| 66 72 6f 6d 20 73 74 64 | 69 6e 2e 0a 58 40 69 74 |from std|in..X@it|
|00001fc0| 65 6d 20 2d 66 40 76 61 | 72 7b 6f 75 74 2d 66 69 |em -f@va|r{out-fi|
|00001fd0| 6c 65 7d 0a 58 53 70 65 | 63 69 66 79 20 74 68 65 |le}.XSpe|cify the|
|00001fe0| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 64 61 74 | name of| the dat|
|00001ff0| 61 62 61 73 65 20 66 69 | 6c 65 20 74 6f 20 63 72 |abase fi|le to cr|
|00002000| 65 61 74 65 2e 20 54 68 | 65 20 64 65 66 61 75 6c |eate. Th|e defaul|
|00002010| 74 20 6e 61 6d 65 20 69 | 73 20 40 63 6f 64 65 7b |t name i|s @code{|
|00002020| 49 44 7d 0a 58 28 69 6e | 20 74 68 65 20 63 75 72 |ID}.X(in| the cur|
|00002030| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 29 2c |rent dir|ectory),|
|00002040| 20 62 75 74 20 79 6f 75 | 20 6d 61 79 20 73 70 65 | but you| may spe|
|00002050| 63 69 66 79 20 61 6e 79 | 20 6e 61 6d 65 2e 20 54 |cify any| name. T|
|00002060| 68 65 20 66 69 6c 65 20 | 6e 61 6d 65 73 0a 58 73 |he file |names.Xs|
|00002070| 74 6f 72 65 64 20 69 6e | 20 74 68 65 20 64 61 74 |tored in| the dat|
|00002080| 61 62 61 73 65 20 77 69 | 6c 6c 20 62 65 20 73 74 |abase wi|ll be st|
|00002090| 6f 72 65 64 20 72 65 6c | 61 74 69 76 65 20 74 6f |ored rel|ative to|
|000020a0| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 20 63 | the dir|ectory c|
|000020b0| 6f 6e 74 61 69 6e 69 6e | 67 0a 58 74 68 65 20 64 |ontainin|g.Xthe d|
|000020c0| 61 74 61 62 61 73 65 2c | 20 73 6f 20 69 66 20 79 |atabase,| so if y|
|000020d0| 6f 75 20 6d 6f 76 65 20 | 74 68 65 20 64 61 74 61 |ou move |the data|
|000020e0| 62 61 73 65 20 61 66 74 | 65 72 20 63 72 65 61 74 |base aft|er creat|
|000020f0| 69 6e 67 20 69 74 2c 20 | 79 6f 75 20 6d 61 79 20 |ing it, |you may |
|00002100| 68 61 76 65 0a 58 74 72 | 6f 75 62 6c 65 20 66 69 |have.Xtr|ouble fi|
|00002110| 6e 64 69 6e 67 20 66 69 | 6c 65 73 20 75 6e 6c 65 |nding fi|les unle|
|00002120| 73 73 20 74 68 65 79 20 | 72 65 6d 61 69 6e 20 69 |ss they |remain i|
|00002130| 6e 20 74 68 65 20 73 61 | 6d 65 20 72 65 6c 61 74 |n the sa|me relat|
|00002140| 69 76 65 20 70 6f 73 69 | 74 69 6f 6e 2e 0a 58 40 |ive posi|tion..X@|
|00002150| 69 74 65 6d 20 2d 73 40 | 76 61 72 7b 64 69 72 65 |item -s@|var{dire|
|00002160| 63 74 6f 72 79 7d 0a 58 | 53 70 65 63 69 66 79 20 |ctory}.X|Specify |
|00002170| 61 20 64 69 72 65 63 74 | 6f 72 79 20 74 6f 20 73 |a direct|ory to s|
|00002180| 65 61 72 63 68 20 66 6f | 72 20 53 43 43 53 20 66 |earch fo|r SCCS f|
|00002190| 69 6c 65 73 20 69 6e 20 | 63 61 73 65 20 61 20 66 |iles in |case a f|
|000021a0| 69 6c 65 20 6e 61 6d 65 | 64 20 6f 6e 20 74 68 65 |ile name|d on the|
|000021b0| 0a 58 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 64 |.Xcomman|d line d|
|000021c0| 6f 65 73 20 6e 6f 74 20 | 65 78 69 73 74 2e 0a 58 |oes not |exist..X|
|000021d0| 40 69 74 65 6d 20 2d 72 | 40 76 61 72 7b 64 69 72 |@item -r|@var{dir|
|000021e0| 65 63 74 6f 72 79 7d 0a | 58 53 70 65 63 69 66 79 |ectory}.|XSpecify|
|000021f0| 20 61 20 64 69 72 65 63 | 74 6f 72 79 20 74 6f 20 | a direc|tory to |
|00002200| 73 65 61 72 63 68 20 66 | 6f 72 20 52 43 53 20 66 |search f|or RCS f|
|00002210| 69 6c 65 73 20 69 6e 20 | 63 61 73 65 20 61 20 66 |iles in |case a f|
|00002220| 69 6c 65 20 6e 61 6d 65 | 64 20 6f 6e 20 74 68 65 |ile name|d on the|
|00002230| 0a 58 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 64 |.Xcomman|d line d|
|00002240| 6f 65 73 20 6e 6f 74 20 | 65 78 69 73 74 2e 0a 58 |oes not |exist..X|
|00002250| 40 69 74 65 6d 20 2d 75 | 0a 58 54 68 65 20 40 63 |@item -u|.XThe @c|
|00002260| 6f 64 65 7b 2d 75 7d 20 | 6f 70 74 69 6f 6e 20 75 |ode{-u} |option u|
|00002270| 70 64 61 74 65 73 20 61 | 6e 20 65 78 69 73 74 69 |pdates a|n existi|
|00002280| 6e 67 20 64 61 74 61 62 | 61 73 65 20 62 79 20 72 |ng datab|ase by r|
|00002290| 65 73 63 61 6e 6e 69 6e | 67 20 61 6e 79 20 66 69 |escannin|g any fi|
|000022a0| 6c 65 73 0a 58 74 68 61 | 74 20 68 61 76 65 20 63 |les.Xtha|t have c|
|000022b0| 68 61 6e 67 65 64 20 73 | 69 6e 63 65 20 74 68 65 |hanged s|ince the|
|000022c0| 20 64 61 74 61 62 61 73 | 65 20 77 61 73 20 77 72 | databas|e was wr|
|000022d0| 69 74 74 65 6e 2e 20 55 | 6e 66 6f 72 74 75 6e 61 |itten. U|nfortuna|
|000022e0| 74 65 6c 79 20 79 6f 75 | 20 63 61 6e 6e 6f 74 0a |tely you| cannot.|
|000022f0| 58 69 6e 63 72 65 6d 65 | 6e 74 61 6c 6c 79 20 61 |Xincreme|ntally a|
|00002300| 64 64 20 6e 65 77 20 66 | 69 6c 65 73 20 74 6f 20 |dd new f|iles to |
|00002310| 61 20 64 61 74 61 62 61 | 73 65 2e 0a 58 40 69 74 |a databa|se..X@it|
|00002320| 65 6d 20 66 69 6c 65 73 | 0a 58 52 65 6d 61 69 6e |em files|.XRemain|
|00002330| 69 6e 67 20 61 72 67 75 | 6d 65 6e 74 73 20 61 72 |ing argu|ments ar|
|00002340| 65 20 6e 61 6d 65 73 20 | 6f 66 20 66 69 6c 65 73 |e names |of files|
|00002350| 20 74 6f 20 62 65 20 73 | 63 61 6e 6e 65 64 20 61 | to be s|canned a|
|00002360| 6e 64 20 69 6e 63 6c 75 | 64 65 64 20 69 6e 20 74 |nd inclu|ded in t|
|00002370| 68 65 0a 58 64 61 74 61 | 62 61 73 65 2e 0a 58 40 |he.Xdata|base..X@|
|00002380| 65 6e 64 20 74 61 62 6c | 65 0a 58 40 65 6e 64 20 |end tabl|e.X@end |
|00002390| 64 65 66 66 6e 0a 58 0a | 58 40 6d 65 6e 75 0a 58 |deffn.X.|X@menu.X|
|000023a0| 2a 20 53 63 61 6e 6e 65 | 72 20 41 72 67 75 6d 65 |* Scanne|r Argume|
|000023b0| 6e 74 73 3a 3a 20 20 20 | 20 20 20 20 20 20 20 20 |nts:: | |
|000023c0| 53 63 61 6e 6e 65 72 20 | 41 72 67 75 6d 65 6e 74 |Scanner |Argument|
|000023d0| 73 0a 58 40 65 6e 64 20 | 6d 65 6e 75 0a 58 0a 58 |s.X@end |menu.X.X|
|000023e0| 40 6e 6f 64 65 20 53 63 | 61 6e 6e 65 72 20 41 72 |@node Sc|anner Ar|
|000023f0| 67 75 6d 65 6e 74 73 2c | 20 20 2c 20 4d 6b 69 64 |guments,| , Mkid|
|00002400| 20 43 6f 6d 6d 61 6e 64 | 20 4c 69 6e 65 20 4f 70 | Command| Line Op|
|00002410| 74 69 6f 6e 73 2c 20 4d | 6b 69 64 20 43 6f 6d 6d |tions, M|kid Comm|
|00002420| 61 6e 64 20 4c 69 6e 65 | 20 4f 70 74 69 6f 6e 73 |and Line| Options|
|00002430| 0a 58 40 73 75 62 73 65 | 63 74 69 6f 6e 20 53 63 |.X@subse|ction Sc|
|00002440| 61 6e 6e 65 72 20 41 72 | 67 75 6d 65 6e 74 73 0a |anner Ar|guments.|
|00002450| 58 53 63 61 6e 6e 65 72 | 20 61 72 67 75 6d 65 6e |XScanner| argumen|
|00002460| 74 73 20 61 6c 6c 20 73 | 74 61 72 74 20 77 69 74 |ts all s|tart wit|
|00002470| 68 20 40 63 6f 64 65 7b | 2d 53 7d 2e 20 53 63 61 |h @code{|-S}. Sca|
|00002480| 6e 6e 65 72 20 61 72 67 | 75 6d 65 6e 74 73 20 61 |nner arg|uments a|
|00002490| 72 65 20 75 73 65 64 20 | 74 6f 20 74 65 6c 6c 0a |re used |to tell.|
|000024a0| 58 40 63 6f 64 65 7b 6d | 6b 69 64 7d 20 77 68 69 |X@code{m|kid} whi|
|000024b0| 63 68 20 6c 61 6e 67 75 | 61 67 65 20 73 63 61 6e |ch langu|age scan|
|000024c0| 6e 65 72 20 74 6f 20 75 | 73 65 20 66 6f 72 20 77 |ner to u|se for w|
|000024d0| 68 69 63 68 20 66 69 6c | 65 73 2c 20 74 6f 20 70 |hich fil|es, to p|
|000024e0| 61 73 73 20 6c 61 6e 67 | 75 61 67 65 0a 58 73 70 |ass lang|uage.Xsp|
|000024f0| 65 63 69 66 69 63 20 6f | 70 74 69 6f 6e 73 20 74 |ecific o|ptions t|
|00002500| 6f 20 74 68 65 20 69 6e | 64 69 76 69 64 75 61 6c |o the in|dividual|
|00002510| 20 73 63 61 6e 6e 65 72 | 73 2c 20 61 6e 64 20 74 | scanner|s, and t|
|00002520| 6f 20 67 65 74 20 73 6f | 6d 65 20 6c 69 6d 69 74 |o get so|me limit|
|00002530| 65 64 0a 58 6f 6e 6c 69 | 6e 65 20 68 65 6c 70 20 |ed.Xonli|ne help |
|00002540| 61 62 6f 75 74 20 73 63 | 61 6e 6e 65 72 20 6f 70 |about sc|anner op|
|00002550| 74 69 6f 6e 73 2e 0a 58 | 0a 58 40 63 6f 64 65 7b |tions..X|.X@code{|
|00002560| 4d 6b 69 64 7d 20 75 73 | 75 61 6c 6c 79 20 64 65 |Mkid} us|ually de|
|00002570| 74 65 72 6d 69 6e 65 73 | 20 77 68 69 63 68 20 6c |termines| which l|
|00002580| 61 6e 67 75 61 67 65 20 | 73 63 61 6e 6e 65 72 20 |anguage |scanner |
|00002590| 74 6f 20 75 73 65 20 6f | 6e 20 61 20 66 69 6c 65 |to use o|n a file|
|000025a0| 0a 58 62 79 20 6c 6f 6f | 6b 69 6e 67 20 61 74 20 |.Xby loo|king at |
|000025b0| 74 68 65 20 73 75 66 66 | 69 78 20 6f 66 20 74 68 |the suff|ix of th|
|000025c0| 65 20 66 69 6c 65 20 6e | 61 6d 65 2e 20 54 68 65 |e file n|ame. The|
|000025d0| 20 73 75 66 66 69 78 20 | 73 74 61 72 74 73 20 61 | suffix |starts a|
|000025e0| 74 20 74 68 65 20 6c 61 | 73 74 0a 58 40 73 61 6d |t the la|st.X@sam|
|000025f0| 70 7b 2e 7d 20 69 6e 20 | 61 20 66 69 6c 65 20 6e |p{.} in |a file n|
|00002600| 61 6d 65 20 61 6e 64 20 | 69 6e 63 6c 75 64 65 73 |ame and |includes|
|00002610| 20 74 68 65 20 40 73 61 | 6d 70 7b 2e 7d 20 61 6e | the @sa|mp{.} an|
|00002620| 64 20 61 6c 6c 20 72 65 | 6d 61 69 6e 69 6e 67 0a |d all re|maining.|
|00002630| 58 63 68 61 72 61 63 74 | 65 72 73 20 28 66 6f 72 |Xcharact|ers (for|
|00002640| 20 65 78 61 6d 70 6c 65 | 20 74 68 65 20 73 75 66 | example| the suf|
|00002650| 66 69 78 20 6f 66 20 40 | 66 69 6c 65 7b 66 72 65 |fix of @|file{fre|
|00002660| 64 2e 63 7d 20 69 73 20 | 40 66 69 6c 65 7b 2e 63 |d.c} is |@file{.c|
|00002670| 7d 29 2e 20 4e 6f 74 0a | 58 61 6c 6c 20 66 69 6c |}). Not.|Xall fil|
|00002680| 65 73 20 68 61 76 65 20 | 61 20 73 75 66 66 69 78 |es have |a suffix|
|00002690| 2c 20 61 6e 64 20 6e 6f | 74 20 61 6c 6c 20 73 75 |, and no|t all su|
|000026a0| 66 66 69 78 65 73 20 61 | 72 65 20 62 6f 75 6e 64 |ffixes a|re bound|
|000026b0| 20 74 6f 20 61 20 73 70 | 65 63 69 66 69 63 0a 58 | to a sp|ecific.X|
|000026c0| 6c 61 6e 67 75 61 67 65 | 20 62 79 20 6d 6b 69 64 |language| by mkid|
|000026d0| 2e 20 49 66 20 40 63 6f | 64 65 7b 6d 6b 69 64 7d |. If @co|de{mkid}|
|000026e0| 20 63 61 6e 6e 6f 74 20 | 64 65 74 65 72 6d 69 6e | cannot |determin|
|000026f0| 65 20 77 68 61 74 20 6c | 61 6e 67 75 61 67 65 20 |e what l|anguage |
|00002700| 61 20 66 69 6c 65 0a 58 | 69 73 2c 20 69 74 20 77 |a file.X|is, it w|
|00002710| 69 6c 6c 20 75 73 65 20 | 74 68 65 20 6c 61 6e 67 |ill use |the lang|
|00002720| 75 61 67 65 20 62 6f 75 | 6e 64 20 74 6f 20 74 68 |uage bou|nd to th|
|00002730| 65 20 40 66 69 6c 65 7b | 2e 64 65 66 61 75 6c 74 |e @file{|.default|
|00002740| 7d 20 73 75 66 66 69 78 | 2e 20 54 68 65 0a 58 70 |} suffix|. The.Xp|
|00002750| 6c 61 69 6e 20 74 65 78 | 74 20 73 63 61 6e 6e 65 |lain tex|t scanne|
|00002760| 72 20 69 73 20 6e 6f 72 | 6d 61 6c 6c 79 20 62 6f |r is nor|mally bo|
|00002770| 75 6e 64 20 74 6f 20 40 | 66 69 6c 65 7b 2e 64 65 |und to @|file{.de|
|00002780| 66 61 75 6c 74 7d 2c 20 | 62 75 74 20 74 68 65 0a |fault}, |but the.|
|00002790| 58 40 63 6f 64 65 7b 2d | 53 7d 20 6f 70 74 69 6f |X@code{-|S} optio|
|000027a0| 6e 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 74 6f |n can be| used to|
|000027b0| 20 63 68 61 6e 67 65 20 | 61 6e 79 20 6c 61 6e 67 | change |any lang|
|000027c0| 75 61 67 65 20 62 69 6e | 64 69 6e 67 73 2e 0a 58 |uage bin|dings..X|
|000027d0| 0a 58 54 68 65 72 65 20 | 61 72 65 20 73 65 76 65 |.XThere |are seve|
|000027e0| 72 61 6c 20 64 69 66 66 | 65 72 65 6e 74 20 66 6f |ral diff|erent fo|
|000027f0| 72 6d 73 20 66 6f 72 20 | 73 63 61 6e 6e 65 72 20 |rms for |scanner |
|00002800| 6f 70 74 69 6f 6e 73 3a | 0a 58 40 74 61 62 6c 65 |options:|.X@table|
|00002810| 20 40 63 6f 64 65 0a 58 | 40 69 74 65 6d 20 2d 53 | @code.X|@item -S|
|00002820| 2e 40 76 61 72 7b 3c 73 | 75 66 66 69 78 3e 7d 3d |.@var{<s|uffix>}=|
|00002830| 40 76 61 72 7b 3c 6c 61 | 6e 67 75 61 67 65 3e 7d |@var{<la|nguage>}|
|00002840| 0a 58 40 63 6f 64 65 7b | 4d 6b 69 64 7d 20 64 65 |.X@code{|Mkid} de|
|00002850| 74 65 72 6d 69 6e 65 73 | 20 77 68 69 63 68 20 6c |termines| which l|
|00002860| 61 6e 67 75 61 67 65 20 | 73 63 61 6e 6e 65 72 20 |anguage |scanner |
|00002870| 74 6f 20 75 73 65 20 6f | 6e 20 61 20 66 69 6c 65 |to use o|n a file|
|00002880| 20 62 79 20 65 78 61 6d | 69 6e 69 6e 67 20 74 68 | by exam|ining th|
|00002890| 65 0a 58 66 69 6c 65 20 | 6e 61 6d 65 20 73 75 66 |e.Xfile |name suf|
|000028a0| 66 69 78 2e 20 54 68 65 | 20 40 73 61 6d 70 7b 2e |fix. The| @samp{.|
|000028b0| 7d 20 69 73 20 70 61 72 | 74 20 6f 66 20 74 68 65 |} is par|t of the|
|000028c0| 20 73 75 66 66 69 78 20 | 61 6e 64 20 6d 75 73 74 | suffix |and must|
|000028d0| 20 62 65 20 73 70 65 63 | 69 66 69 65 64 0a 58 69 | be spec|ified.Xi|
|000028e0| 6e 20 74 68 69 73 20 66 | 6f 72 6d 20 6f 66 20 74 |n this f|orm of t|
|000028f0| 68 65 20 40 63 6f 64 65 | 7b 2d 53 7d 20 6f 70 74 |he @code|{-S} opt|
|00002900| 69 6f 6e 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ion. For| example|
|00002910| 20 40 73 61 6d 70 7b 2d | 53 2e 79 3d 63 7d 20 74 | @samp{-|S.y=c} t|
|00002920| 65 6c 6c 73 0a 58 40 63 | 6f 64 65 7b 6d 6b 69 64 |ells.X@c|ode{mkid|
|00002930| 7d 20 74 6f 20 75 73 65 | 20 74 68 65 20 40 73 61 |} to use| the @sa|
|00002940| 6d 70 7b 63 7d 20 6c 61 | 6e 67 75 61 67 65 20 73 |mp{c} la|nguage s|
|00002950| 63 61 6e 6e 65 72 20 66 | 6f 72 20 61 6c 6c 20 66 |canner f|or all f|
|00002960| 69 6c 65 73 20 65 6e 64 | 69 6e 67 20 69 6e 0a 58 |iles end|ing in.X|
|00002970| 74 68 65 20 40 73 61 6d | 70 7b 2e 79 7d 20 73 75 |the @sam|p{.y} su|
|00002980| 66 66 69 78 2e 0a 58 40 | 69 74 65 6d 20 2d 53 2e |ffix..X@|item -S.|
|00002990| 40 76 61 72 7b 3c 73 75 | 66 66 69 78 3e 7d 3d 3f |@var{<su|ffix>}=?|
|000029a0| 0a 58 40 63 6f 64 65 7b | 4d 6b 69 64 7d 20 68 61 |.X@code{|Mkid} ha|
|000029b0| 73 20 73 65 76 65 72 61 | 6c 20 62 75 69 6c 74 20 |s severa|l built |
|000029c0| 69 6e 20 73 75 66 66 69 | 78 65 73 20 69 74 20 61 |in suffi|xes it a|
|000029d0| 6c 72 65 61 64 79 20 72 | 65 63 6f 67 6e 69 7a 65 |lready r|ecognize|
|000029e0| 73 2e 20 50 61 73 73 69 | 6e 67 0a 58 61 20 40 73 |s. Passi|ng.Xa @s|
|000029f0| 61 6d 70 7b 3f 7d 20 77 | 69 6c 6c 20 63 61 75 73 |amp{?} w|ill caus|
|00002a00| 65 20 69 74 20 74 6f 20 | 70 72 69 6e 74 20 74 68 |e it to |print th|
|00002a10| 65 20 6c 61 6e 67 75 61 | 67 65 20 69 74 20 77 69 |e langua|ge it wi|
|00002a20| 6c 6c 20 75 73 65 20 74 | 6f 20 73 63 61 6e 20 66 |ll use t|o scan f|
|00002a30| 69 6c 65 73 0a 58 77 69 | 74 68 20 74 68 61 74 20 |iles.Xwi|th that |
|00002a40| 73 75 66 66 69 78 2e 0a | 58 40 69 74 65 6d 20 2d |suffix..|X@item -|
|00002a50| 53 3f 3d 40 76 61 72 7b | 3c 6c 61 6e 67 75 61 67 |S?=@var{|<languag|
|00002a60| 65 3e 7d 0a 58 54 68 69 | 73 20 66 6f 72 6d 20 77 |e>}.XThi|s form w|
|00002a70| 69 6c 6c 20 70 72 69 6e | 74 20 77 68 69 63 68 20 |ill prin|t which |
|00002a80| 73 75 66 66 69 78 65 73 | 20 61 72 65 20 73 63 61 |suffixes| are sca|
|00002a90| 6e 6e 65 64 20 77 69 74 | 68 20 74 68 65 20 67 69 |nned wit|h the gi|
|00002aa0| 76 65 6e 20 6c 61 6e 67 | 75 61 67 65 2e 0a 58 40 |ven lang|uage..X@|
|00002ab0| 69 74 65 6d 20 2d 53 3f | 3d 3f 0a 58 54 68 69 73 |item -S?|=?.XThis|
|00002ac0| 20 70 72 69 6e 74 73 20 | 61 6c 6c 20 74 68 65 20 | prints |all the |
|00002ad0| 73 75 66 66 69 78 40 65 | 78 70 61 6e 73 69 6f 6e |suffix@e|xpansion|
|00002ae0| 7b 7d 6c 61 6e 67 75 61 | 67 65 20 62 69 6e 64 69 |{}langua|ge bindi|
|00002af0| 6e 67 73 20 72 65 63 6f | 67 6e 69 7a 65 64 20 62 |ngs reco|gnized b|
|00002b00| 79 0a 58 40 63 6f 64 65 | 7b 6d 6b 69 64 7d 2e 0a |y.X@code|{mkid}..|
|00002b10| 58 40 69 74 65 6d 20 2d | 53 40 76 61 72 7b 3c 6c |X@item -|S@var{<l|
|00002b20| 61 6e 67 75 61 67 65 3e | 7d 2d 40 76 61 72 7b 3c |anguage>|}-@var{<|
|00002b30| 61 72 67 3e 7d 0a 58 45 | 61 63 68 20 6c 61 6e 67 |arg>}.XE|ach lang|
|00002b40| 75 61 67 65 20 73 63 61 | 6e 6e 65 72 20 61 63 63 |uage sca|nner acc|
|00002b50| 65 70 74 73 20 73 63 61 | 6e 6e 65 72 20 64 65 70 |epts sca|nner dep|
|00002b60| 65 6e 64 65 6e 74 20 61 | 72 67 75 6d 65 6e 74 73 |endent a|rguments|
|00002b70| 2e 20 54 68 69 73 20 66 | 6f 72 6d 20 6f 66 20 74 |. This f|orm of t|
|00002b80| 68 65 0a 58 40 63 6f 64 | 65 7b 2d 53 7d 20 6f 70 |he.X@cod|e{-S} op|
|00002b90| 74 69 6f 6e 20 69 73 20 | 75 73 65 64 20 74 6f 20 |tion is |used to |
|00002ba0| 70 61 73 73 20 61 72 62 | 69 74 72 61 72 79 20 61 |pass arb|itrary a|
|00002bb0| 72 67 75 6d 65 6e 74 73 | 20 74 6f 20 74 68 65 20 |rguments| to the |
|00002bc0| 6c 61 6e 67 75 61 67 65 | 20 73 63 61 6e 6e 65 72 |language| scanner|
|00002bd0| 73 2e 0a 58 40 69 74 65 | 6d 20 2d 53 40 76 61 72 |s..X@ite|m -S@var|
|00002be0| 7b 3c 6c 61 6e 67 75 61 | 67 65 3e 7d 3f 0a 58 50 |{<langua|ge>}?.XP|
|00002bf0| 61 73 73 69 6e 67 20 61 | 20 40 73 61 6d 70 7b 3f |assing a| @samp{?|
|00002c00| 7d 20 69 6e 73 74 65 61 | 64 20 6f 66 20 61 20 6c |} instea|d of a l|
|00002c10| 61 6e 67 75 61 67 65 20 | 6f 70 74 69 6f 6e 20 77 |anguage |option w|
|00002c20| 69 6c 6c 20 70 72 69 6e | 74 20 61 20 62 72 69 65 |ill prin|t a brie|
|00002c30| 66 20 73 75 6d 6d 61 72 | 79 0a 58 6f 66 20 74 68 |f summar|y.Xof th|
|00002c40| 65 20 6f 70 74 69 6f 6e | 73 20 72 65 63 6f 67 6e |e option|s recogn|
|00002c50| 69 7a 65 64 20 62 79 20 | 74 68 65 20 73 70 65 63 |ized by |the spec|
|00002c60| 69 66 69 65 64 20 6c 61 | 6e 67 75 61 67 65 20 73 |ified la|nguage s|
|00002c70| 63 61 6e 6e 65 72 2e 0a | 58 40 69 74 65 6d 20 2d |canner..|X@item -|
|00002c80| 53 40 76 61 72 7b 3c 6e | 65 77 20 6c 61 6e 67 75 |S@var{<n|ew langu|
|00002c90| 61 67 65 3e 7d 2f 40 76 | 61 72 7b 3c 62 75 69 6c |age>}/@v|ar{<buil|
|00002ca0| 74 69 6e 20 6c 61 6e 67 | 75 61 67 65 3e 7d 2f 40 |tin lang|uage>}/@|
|00002cb0| 76 61 72 7b 3c 66 69 6c | 74 65 72 20 63 6f 6d 6d |var{<fil|ter comm|
|00002cc0| 61 6e 64 3e 7d 0a 58 54 | 68 69 73 20 66 6f 72 6d |and>}.XT|his form|
|00002cd0| 20 73 70 65 63 69 66 69 | 65 73 20 61 20 6e 65 77 | specifi|es a new|
|00002ce0| 20 6c 61 6e 67 75 61 67 | 65 20 64 65 66 69 6e 65 | languag|e define|
|00002cf0| 64 20 69 6e 20 74 65 72 | 6d 73 20 6f 66 20 61 20 |d in ter|ms of a |
|00002d00| 62 75 69 6c 74 69 6e 20 | 6c 61 6e 67 75 61 67 65 |builtin |language|
|00002d10| 0a 58 61 6e 64 20 61 20 | 73 68 65 6c 6c 20 63 6f |.Xand a |shell co|
|00002d20| 6d 6d 61 6e 64 20 74 68 | 61 74 20 77 69 6c 6c 20 |mmand th|at will |
|00002d30| 62 65 20 75 73 65 64 20 | 74 6f 20 66 69 6c 74 65 |be used |to filte|
|00002d40| 72 20 74 68 65 20 66 69 | 6c 65 20 70 72 69 6f 72 |r the fi|le prior|
|00002d50| 20 74 6f 20 70 61 73 73 | 69 6e 67 0a 58 6f 6e 20 | to pass|ing.Xon |
|00002d60| 74 6f 20 74 68 65 20 62 | 75 69 6c 74 69 6e 20 6c |to the b|uiltin l|
|00002d70| 61 6e 67 75 61 67 65 20 | 73 63 61 6e 6e 65 72 2e |anguage |scanner.|
|00002d80| 0a 58 40 65 6e 64 20 74 | 61 62 6c 65 0a 58 0a 58 |.X@end t|able.X.X|
|00002d90| 40 6e 6f 64 65 20 42 75 | 69 6c 74 69 6e 20 53 63 |@node Bu|iltin Sc|
|00002da0| 61 6e 6e 65 72 73 2c 20 | 41 64 64 69 6e 67 20 59 |anners, |Adding Y|
|00002db0| 6f 75 72 20 4f 77 6e 20 | 53 63 61 6e 6e 65 72 2c |our Own |Scanner,|
|00002dc0| 20 4d 6b 69 64 20 43 6f | 6d 6d 61 6e 64 20 4c 69 | Mkid Co|mmand Li|
|00002dd0| 6e 65 20 4f 70 74 69 6f | 6e 73 2c 20 4d 6b 69 64 |ne Optio|ns, Mkid|
|00002de0| 0a 58 40 73 65 63 74 69 | 6f 6e 20 42 75 69 6c 74 |.X@secti|on Built|
|00002df0| 69 6e 20 53 63 61 6e 6e | 65 72 73 0a 58 49 66 20 |in Scann|ers.XIf |
|00002e00| 79 6f 75 20 72 75 6e 20 | 40 63 6f 64 65 7b 6d 6b |you run |@code{mk|
|00002e10| 69 64 20 2d 53 3f 3d 3f | 7d 20 79 6f 75 20 77 69 |id -S?=?|} you wi|
|00002e20| 6c 6c 20 66 69 6e 64 20 | 62 69 6e 64 69 6e 67 73 |ll find |bindings|
|00002e30| 20 66 6f 72 20 61 20 6e | 75 6d 62 65 72 20 6f 66 | for a n|umber of|
|00002e40| 0a 58 6c 61 6e 67 75 61 | 67 65 73 3b 20 75 6e 66 |.Xlangua|ges; unf|
|00002e50| 6f 72 74 75 6e 61 74 65 | 6c 79 20 70 61 73 63 61 |ortunate|ly pasca|
|00002e60| 6c 2c 20 74 68 6f 75 67 | 68 20 6d 65 6e 74 69 6f |l, thoug|h mentio|
|00002e70| 6e 65 64 20 69 6e 20 74 | 68 65 20 6c 69 73 74 2c |ned in t|he list,|
|00002e80| 20 69 73 20 6e 6f 74 0a | 58 61 63 74 75 61 6c 6c | is not.|Xactuall|
|00002e90| 79 20 73 75 70 70 6f 72 | 74 65 64 2e 20 20 54 68 |y suppor|ted. Th|
|00002ea0| 65 20 73 75 70 70 6f 72 | 74 65 64 20 6c 61 6e 67 |e suppor|ted lang|
|00002eb0| 75 61 67 65 73 20 61 72 | 65 20 64 6f 63 75 6d 65 |uages ar|e docume|
|00002ec0| 6e 74 65 64 20 62 65 6c | 6f 77 0a 58 40 66 6f 6f |nted bel|ow.X@foo|
|00002ed0| 74 6e 6f 74 65 7b 54 68 | 69 73 20 69 73 20 6e 6f |tnote{Th|is is no|
|00002ee0| 74 20 73 74 72 69 63 74 | 6c 79 20 74 72 75 65 20 |t strict|ly true |
|00002ef0| 2d 2d 2d 20 76 68 69 6c | 20 69 73 20 61 20 73 75 |--- vhil| is a su|
|00002f00| 70 70 6f 72 74 65 64 20 | 6c 61 6e 67 75 61 67 65 |pported |language|
|00002f10| 2c 20 62 75 74 0a 58 69 | 74 20 69 73 20 61 6e 20 |, but.Xi|t is an |
|00002f20| 6f 62 73 6f 6c 65 74 65 | 20 61 6e 64 20 61 72 63 |obsolete| and arc|
|00002f30| 61 6e 65 20 64 69 61 6c | 65 63 74 20 6f 66 20 43 |ane dial|ect of C|
|00002f40| 20 61 6e 64 20 73 68 6f | 75 6c 64 20 62 65 20 69 | and sho|uld be i|
|00002f50| 67 6e 6f 72 65 64 7d 2e | 0a 58 0a 58 40 6d 65 6e |gnored}.|.X.X@men|
|00002f60| 75 0a 58 2a 20 43 3a 3a | 20 20 20 20 20 20 20 20 |u.X* C::| |
|00002f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f80| 20 20 20 43 0a 58 2a 20 | 50 6c 61 69 6e 20 54 65 | C.X* |Plain Te|
|00002f90| 78 74 3a 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |xt:: | |
|00002fa0| 20 20 20 20 20 20 50 6c | 61 69 6e 20 54 65 78 74 | Pl|ain Text|
|00002fb0| 0a 58 2a 20 41 73 73 65 | 6d 62 6c 65 72 3a 3a 20 |.X* Asse|mbler:: |
|00002fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002fd0| 20 20 41 73 73 65 6d 62 | 6c 65 72 0a 58 40 65 6e | Assemb|ler.X@en|
|00002fe0| 64 20 6d 65 6e 75 0a 58 | 0a 58 40 6e 6f 64 65 20 |d menu.X|.X@node |
|00002ff0| 43 2c 20 50 6c 61 69 6e | 20 54 65 78 74 2c 20 42 |C, Plain| Text, B|
|00003000| 75 69 6c 74 69 6e 20 53 | 63 61 6e 6e 65 72 73 2c |uiltin S|canners,|
|00003010| 20 42 75 69 6c 74 69 6e | 20 53 63 61 6e 6e 65 72 | Builtin| Scanner|
|00003020| 73 0a 58 40 73 75 62 73 | 65 63 74 69 6f 6e 20 43 |s.X@subs|ection C|
|00003030| 0a 58 0a 58 54 68 65 20 | 43 20 73 63 61 6e 6e 65 |.X.XThe |C scanne|
|00003040| 72 20 69 73 20 70 72 6f | 62 61 62 6c 79 20 74 68 |r is pro|bably th|
|00003050| 65 20 6d 6f 73 74 20 70 | 6f 70 75 6c 61 72 2e 20 |e most p|opular. |
|00003060| 49 74 20 73 63 61 6e 73 | 20 69 64 65 6e 74 69 66 |It scans| identif|
|00003070| 69 65 72 73 20 6f 75 74 | 20 6f 66 0a 58 43 20 70 |iers out| of.XC p|
|00003080| 72 6f 67 72 61 6d 73 2c | 20 73 6b 69 70 70 69 6e |rograms,| skippin|
|00003090| 67 20 6f 76 65 72 20 63 | 6f 6d 6d 65 6e 74 73 20 |g over c|omments |
|000030a0| 61 6e 64 20 73 74 72 69 | 6e 67 73 20 69 6e 20 74 |and stri|ngs in t|
|000030b0| 68 65 20 70 72 6f 63 65 | 73 73 2e 20 20 54 68 65 |he proce|ss. The|
|000030c0| 0a 58 6e 6f 72 6d 61 6c | 20 40 66 69 6c 65 7b 2e |.Xnormal| @file{.|
|000030d0| 63 7d 20 61 6e 64 20 40 | 66 69 6c 65 7b 2e 68 7d |c} and @|file{.h}|
|000030e0| 20 73 75 66 66 69 78 65 | 73 20 61 72 65 20 61 75 | suffixe|s are au|
|000030f0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 72 65 63 6f |tomatica|lly reco|
|00003100| 67 6e 69 7a 65 64 20 61 | 73 0a 58 43 20 6c 61 6e |gnized a|s.XC lan|
|00003110| 67 75 61 67 65 2c 20 61 | 73 20 77 65 6c 6c 20 61 |guage, a|s well a|
|00003120| 73 20 74 68 65 20 6d 6f | 72 65 20 6f 62 73 63 75 |s the mo|re obscu|
|00003130| 72 65 20 40 66 69 6c 65 | 7b 2e 79 7d 20 28 79 61 |re @file|{.y} (ya|
|00003140| 63 63 29 20 61 6e 64 20 | 40 66 69 6c 65 7b 2e 6c |cc) and |@file{.l|
|00003150| 7d 0a 58 28 6c 65 78 29 | 20 73 75 66 66 69 78 65 |}.X(lex)| suffixe|
|00003160| 73 2e 0a 58 0a 58 54 68 | 65 20 40 63 6f 64 65 7b |s..X.XTh|e @code{|
|00003170| 2d 53 7d 20 6f 70 74 69 | 6f 6e 73 20 72 65 63 6f |-S} opti|ons reco|
|00003180| 67 6e 69 7a 65 64 20 62 | 79 20 74 68 65 20 43 20 |gnized b|y the C |
|00003190| 73 63 61 6e 6e 65 72 20 | 61 72 65 3a 0a 58 0a 58 |scanner |are:.X.X|
|000031a0| 40 74 61 62 6c 65 20 40 | 63 6f 64 65 0a 58 40 69 |@table @|code.X@i|
|000031b0| 74 65 6d 20 2d 53 63 2d | 73 40 76 61 72 7b 3c 63 |tem -Sc-|s@var{<c|
|000031c0| 68 61 72 61 63 74 65 72 | 3e 7d 0a 58 41 6c 6c 6f |haracter|>}.XAllo|
|000031d0| 77 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |w the sp|ecified |
|000031e0| 40 76 61 72 7b 3c 63 68 | 61 72 61 63 74 65 72 3e |@var{<ch|aracter>|
|000031f0| 7d 20 69 6e 20 69 64 65 | 6e 74 69 66 69 65 72 73 |} in ide|ntifiers|
|00003200| 20 28 73 6f 6d 65 20 64 | 69 61 6c 65 63 74 73 20 | (some d|ialects |
|00003210| 6f 66 0a 58 43 20 61 6c | 6c 6f 77 20 40 63 6f 64 |of.XC al|low @cod|
|00003220| 65 7b 24 7d 20 69 6e 20 | 69 64 65 6e 74 69 66 69 |e{$} in |identifi|
|00003230| 65 72 73 2c 20 73 6f 20 | 79 6f 75 20 63 6f 75 6c |ers, so |you coul|
|00003240| 64 20 73 61 79 20 40 63 | 6f 64 65 7b 2d 53 63 2d |d say @c|ode{-Sc-|
|00003250| 73 24 7d 20 74 6f 0a 58 | 61 63 63 65 70 74 20 74 |s$} to.X|accept t|
|00003260| 68 61 74 20 64 69 61 6c | 65 63 74 29 2e 0a 58 40 |hat dial|ect)..X@|
|00003270| 69 74 65 6d 20 2d 53 63 | 2d 75 0a 58 44 6f 6e 27 |item -Sc|-u.XDon'|
|00003280| 74 20 73 74 72 69 70 20 | 6c 65 61 64 69 6e 67 20 |t strip |leading |
|00003290| 75 6e 64 65 72 73 63 6f | 72 65 73 20 66 72 6f 6d |undersco|res from|
|000032a0| 20 69 64 65 6e 74 69 66 | 69 65 72 20 6e 61 6d 65 | identif|ier name|
|000032b0| 73 20 28 74 68 69 73 20 | 69 73 20 74 68 65 20 64 |s (this |is the d|
|000032c0| 65 66 61 75 6c 74 0a 58 | 6d 6f 64 65 20 6f 66 20 |efault.X|mode of |
|000032d0| 6f 70 65 72 61 74 69 6f | 6e 29 2e 0a 58 40 69 74 |operatio|n)..X@it|
|000032e0| 65 6d 20 2d 53 63 2b 75 | 0a 58 44 6f 20 73 74 72 |em -Sc+u|.XDo str|
|000032f0| 69 70 20 6c 65 61 64 69 | 6e 67 20 75 6e 64 65 72 |ip leadi|ng under|
|00003300| 73 63 6f 72 65 73 20 66 | 72 6f 6d 20 69 64 65 6e |scores f|rom iden|
|00003310| 74 69 66 69 65 72 20 6e | 61 6d 65 73 20 28 49 20 |tifier n|ames (I |
|00003320| 64 6f 6e 27 74 20 6b 6e | 6f 77 20 77 68 79 20 79 |don't kn|ow why y|
|00003330| 6f 75 0a 58 77 6f 75 6c | 64 20 77 61 6e 74 20 74 |ou.Xwoul|d want t|
|00003340| 6f 20 64 6f 20 74 68 69 | 73 20 69 6e 20 43 20 70 |o do thi|s in C p|
|00003350| 72 6f 67 72 61 6d 73 2c | 20 62 75 74 20 74 68 65 |rograms,| but the|
|00003360| 20 6f 70 74 69 6f 6e 20 | 69 73 20 61 76 61 69 6c | option |is avail|
|00003370| 61 62 6c 65 29 2e 0a 58 | 40 65 6e 64 20 74 61 62 |able)..X|@end tab|
|00003380| 6c 65 0a 58 0a 58 40 6e | 6f 64 65 20 50 6c 61 69 |le.X.X@n|ode Plai|
|00003390| 6e 20 54 65 78 74 2c 20 | 41 73 73 65 6d 62 6c 65 |n Text, |Assemble|
|000033a0| 72 2c 20 43 2c 20 42 75 | 69 6c 74 69 6e 20 53 63 |r, C, Bu|iltin Sc|
|000033b0| 61 6e 6e 65 72 73 0a 58 | 40 73 75 62 73 65 63 74 |anners.X|@subsect|
|000033c0| 69 6f 6e 20 50 6c 61 69 | 6e 20 54 65 78 74 0a 58 |ion Plai|n Text.X|
|000033d0| 54 68 65 20 70 6c 61 69 | 6e 20 74 65 78 74 20 73 |The plai|n text s|
|000033e0| 63 61 6e 6e 65 72 20 69 | 73 20 64 65 73 69 67 6e |canner i|s design|
|000033f0| 65 64 20 66 6f 72 20 73 | 63 61 6e 6e 69 6e 67 20 |ed for s|canning |
|00003400| 64 6f 63 75 6d 65 6e 74 | 73 2e 20 54 68 69 73 20 |document|s. This |
|00003410| 69 73 0a 58 74 79 70 69 | 63 61 6c 6c 79 20 74 68 |is.Xtypi|cally th|
|00003420| 65 20 73 63 61 6e 6e 65 | 72 20 75 73 65 64 20 77 |e scanne|r used w|
|00003430| 68 65 6e 20 61 64 64 69 | 6e 67 20 63 75 73 74 6f |hen addi|ng custo|
|00003440| 6d 20 73 63 61 6e 6e 65 | 72 73 2c 20 61 6e 64 20 |m scanne|rs, and |
|00003450| 73 65 76 65 72 61 6c 0a | 58 63 75 73 74 6f 6d 20 |several.|Xcustom |
|00003460| 73 63 61 6e 6e 65 72 73 | 20 61 72 65 20 62 75 69 |scanners| are bui|
|00003470| 6c 74 20 69 6e 20 74 6f | 20 40 63 6f 64 65 7b 6d |lt in to| @code{m|
|00003480| 6b 69 64 7d 20 61 6e 64 | 20 64 65 66 69 6e 65 64 |kid} and| defined|
|00003490| 20 69 6e 20 74 65 72 6d | 73 20 6f 66 20 66 69 6c | in term|s of fil|
|000034a0| 74 65 72 73 0a 58 61 6e | 64 20 74 68 65 20 74 65 |ters.Xan|d the te|
|000034b0| 78 74 20 73 63 61 6e 6e | 65 72 2e 20 41 20 74 72 |xt scann|er. A tr|
|000034c0| 6f 66 66 20 73 63 61 6e | 6e 65 72 20 72 75 6e 73 |off scan|ner runs|
|000034d0| 20 40 63 6f 64 65 7b 64 | 65 72 6f 66 66 7d 20 6f | @code{d|eroff} o|
|000034e0| 76 65 72 20 74 68 65 20 | 66 69 6c 65 0a 58 74 68 |ver the |file.Xth|
|000034f0| 65 6e 20 66 65 65 64 73 | 20 74 68 65 20 72 65 73 |en feeds| the res|
|00003500| 75 6c 74 20 74 6f 20 74 | 68 65 20 74 65 78 74 20 |ult to t|he text |
|00003510| 73 63 61 6e 6e 65 72 2e | 20 41 20 63 6f 6d 70 72 |scanner.| A compr|
|00003520| 65 73 73 65 64 20 6d 61 | 6e 20 70 61 67 65 20 73 |essed ma|n page s|
|00003530| 63 61 6e 6e 65 72 0a 58 | 72 75 6e 73 20 40 63 6f |canner.X|runs @co|
|00003540| 64 65 7b 70 63 61 74 7d | 20 70 69 70 65 64 20 69 |de{pcat}| piped i|
|00003550| 6e 74 6f 20 40 63 6f 64 | 65 7b 63 6f 6c 20 2d 62 |nto @cod|e{col -b|
|00003560| 7d 2c 20 61 6e 64 20 61 | 20 40 54 65 58 7b 7d 20 |}, and a| @TeX{} |
|00003570| 73 63 61 6e 6e 65 72 20 | 72 75 6e 73 0a 58 40 63 |scanner |runs.X@c|
|00003580| 6f 64 65 7b 64 65 74 65 | 78 7d 2e 0a 58 0a 58 4f |ode{dete|x}..X.XO|
|00003590| 70 74 69 6f 6e 73 3a 0a | 58 0a 58 40 74 61 62 6c |ptions:.|X.X@tabl|
|000035a0| 65 20 40 63 6f 64 65 0a | 58 40 69 74 65 6d 20 2d |e @code.|X@item -|
|000035b0| 53 74 65 78 74 2b 61 40 | 76 61 72 7b 3c 63 68 61 |Stext+a@|var{<cha|
|000035c0| 72 61 63 74 65 72 3e 7d | 0a 58 49 6e 63 6c 75 64 |racter>}|.XInclud|
|000035d0| 65 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |e the sp|ecified |
|000035e0| 63 68 61 72 61 63 74 65 | 72 20 69 6e 20 69 64 65 |characte|r in ide|
|000035f0| 6e 74 69 66 69 65 72 73 | 2e 20 42 79 20 64 65 66 |ntifiers|. By def|
|00003600| 61 75 6c 74 2c 20 73 74 | 61 6e 64 61 72 64 0a 58 |ault, st|andard.X|
|00003610| 43 20 69 64 65 6e 74 69 | 66 69 65 72 73 20 61 72 |C identi|fiers ar|
|00003620| 65 20 72 65 63 6f 67 6e | 69 7a 65 64 2e 0a 58 40 |e recogn|ized..X@|
|00003630| 69 74 65 6d 20 2d 53 74 | 65 78 74 2d 61 40 76 61 |item -St|ext-a@va|
|00003640| 72 7b 3c 63 68 61 72 61 | 63 74 65 72 3e 7d 0a 58 |r{<chara|cter>}.X|
|00003650| 45 78 63 6c 75 64 65 20 | 74 68 65 20 73 70 65 63 |Exclude |the spec|
|00003660| 69 66 69 65 64 20 63 68 | 61 72 61 63 74 65 72 20 |ified ch|aracter |
|00003670| 66 72 6f 6d 20 69 64 65 | 6e 74 69 66 69 65 72 73 |from ide|ntifiers|
|00003680| 2e 0a 58 40 69 74 65 6d | 20 2d 53 74 65 78 74 2b |..X@item| -Stext+|
|00003690| 73 40 76 61 72 7b 3c 63 | 68 61 72 61 63 74 65 72 |s@var{<c|haracter|
|000036a0| 3e 7d 0a 58 53 71 75 65 | 65 7a 65 20 74 68 65 20 |>}.XSque|eze the |
|000036b0| 73 70 65 63 69 66 69 65 | 64 20 63 68 61 72 61 63 |specifie|d charac|
|000036c0| 74 65 72 20 6f 75 74 20 | 6f 66 20 69 64 65 6e 74 |ter out |of ident|
|000036d0| 69 66 69 65 72 73 2e 20 | 42 79 20 64 65 66 61 75 |ifiers. |By defau|
|000036e0| 6c 74 2c 20 74 68 65 0a | 58 63 68 61 72 61 63 74 |lt, the.|Xcharact|
|000036f0| 65 72 73 20 40 73 61 6d | 70 7b 27 7d 2c 20 40 73 |ers @sam|p{'}, @s|
|00003700| 61 6d 70 7b 2d 7d 2c 20 | 61 6e 64 20 40 73 61 6d |amp{-}, |and @sam|
|00003710| 70 7b 2e 7d 20 61 72 65 | 20 73 71 75 65 65 7a 65 |p{.} are| squeeze|
|00003720| 64 20 6f 75 74 20 6f 66 | 20 69 64 65 6e 74 69 66 |d out of| identif|
|00003730| 69 65 72 73 2e 0a 58 54 | 68 69 73 20 67 65 6e 65 |iers..XT|his gene|
|00003740| 72 61 74 65 73 20 74 72 | 61 6e 73 66 6f 72 6d 61 |rates tr|ansforma|
|00003750| 74 69 6f 6e 73 20 6c 69 | 6b 65 20 40 76 61 72 7b |tions li|ke @var{|
|00003760| 66 72 65 64 27 73 7d 40 | 65 78 70 61 6e 73 69 6f |fred's}@|expansio|
|00003770| 6e 7b 7d 40 76 61 72 7b | 66 72 65 64 73 7d 20 6f |n{}@var{|freds} o|
|00003780| 72 0a 58 40 76 61 72 7b | 61 2e 73 2e 70 2e 63 2e |r.X@var{|a.s.p.c.|
|00003790| 61 2e 7d 40 65 78 70 61 | 6e 73 69 6f 6e 7b 7d 40 |a.}@expa|nsion{}@|
|000037a0| 76 61 72 7b 61 73 70 63 | 61 7d 2e 0a 58 40 69 74 |var{aspc|a}..X@it|
|000037b0| 65 6d 20 2d 53 74 65 78 | 74 2d 73 40 76 61 72 7b |em -Stex|t-s@var{|
|000037c0| 3c 63 68 61 72 61 63 74 | 65 72 3e 7d 0a 58 44 6f |<charact|er>}.XDo|
|000037d0| 20 6e 6f 74 20 73 71 75 | 65 65 7a 65 20 6f 75 74 | not squ|eeze out|
|000037e0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 63 | the spe|cified c|
|000037f0| 68 61 72 61 63 74 65 72 | 2e 0a 58 40 65 6e 64 20 |haracter|..X@end |
|00003800| 74 61 62 6c 65 0a 58 0a | 58 40 6e 6f 64 65 20 41 |table.X.|X@node A|
|00003810| 73 73 65 6d 62 6c 65 72 | 2c 20 20 2c 20 50 6c 61 |ssembler|, , Pla|
|00003820| 69 6e 20 54 65 78 74 2c | 20 42 75 69 6c 74 69 6e |in Text,| Builtin|
|00003830| 20 53 63 61 6e 6e 65 72 | 73 0a 58 40 73 75 62 73 | Scanner|s.X@subs|
|00003840| 65 63 74 69 6f 6e 20 41 | 73 73 65 6d 62 6c 65 72 |ection A|ssembler|
|00003850| 0a 58 41 73 73 65 6d 62 | 6c 65 72 73 20 63 6f 6d |.XAssemb|lers com|
|00003860| 65 20 69 6e 20 73 65 76 | 65 72 61 6c 20 66 6c 61 |e in sev|eral fla|
|00003870| 76 6f 72 73 2c 20 73 6f | 20 74 68 65 72 65 20 61 |vors, so| there a|
|00003880| 72 65 20 73 65 76 65 72 | 61 6c 20 6f 70 74 69 6f |re sever|al optio|
|00003890| 6e 73 20 74 6f 0a 58 63 | 6f 6e 74 72 6f 6c 20 73 |ns to.Xc|ontrol s|
|000038a0| 63 61 6e 6e 69 6e 67 20 | 6f 66 20 61 73 73 65 6d |canning |of assem|
|000038b0| 62 6c 79 20 63 6f 64 65 | 3a 0a 58 0a 58 40 74 61 |bly code|:.X.X@ta|
|000038c0| 62 6c 65 20 40 63 6f 64 | 65 0a 58 40 69 74 65 6d |ble @cod|e.X@item|
|000038d0| 20 2d 53 61 73 6d 2d 63 | 40 76 61 72 7b 3c 63 68 | -Sasm-c|@var{<ch|
|000038e0| 61 72 61 63 74 65 72 3e | 7d 0a 58 54 68 65 20 73 |aracter>|}.XThe s|
|000038f0| 70 65 63 69 66 69 65 64 | 20 63 68 61 72 61 63 74 |pecified| charact|
|00003900| 65 72 20 73 74 61 72 74 | 73 20 61 20 63 6f 6d 6d |er start|s a comm|
|00003910| 65 6e 74 20 74 68 61 74 | 20 65 78 74 65 6e 64 73 |ent that| extends|
|00003920| 20 74 6f 20 65 6e 64 20 | 6f 66 20 6c 69 6e 65 0a | to end |of line.|
|00003930| 58 28 69 6e 20 6d 61 6e | 79 20 61 73 73 65 6d 62 |X(in man|y assemb|
|00003940| 6c 65 72 73 20 74 68 69 | 73 20 69 73 20 61 20 73 |lers thi|s is a s|
|00003950| 65 6d 69 63 6f 6c 6f 6e | 20 6f 72 20 6e 75 6d 62 |emicolon| or numb|
|00003960| 65 72 20 73 69 67 6e 20 | 2d 2d 2d 20 74 68 65 72 |er sign |--- ther|
|00003970| 65 20 69 73 0a 58 6e 6f | 20 64 65 66 61 75 6c 74 |e is.Xno| default|
|00003980| 20 76 61 6c 75 65 20 66 | 6f 72 20 74 68 69 73 29 | value f|or this)|
|00003990| 2e 0a 58 40 69 74 65 6d | 20 2d 53 61 73 6d 2b 75 |..X@item| -Sasm+u|
|000039a0| 0a 58 53 74 72 69 70 20 | 74 68 65 20 6c 65 61 64 |.XStrip |the lead|
|000039b0| 69 6e 67 20 75 6e 64 65 | 72 73 63 6f 72 65 73 20 |ing unde|rscores |
|000039c0| 6f 66 66 20 69 64 65 6e | 74 69 66 69 65 72 73 20 |off iden|tifiers |
|000039d0| 28 74 68 65 20 64 65 66 | 61 75 6c 74 20 62 65 68 |(the def|ault beh|
|000039e0| 61 76 69 6f 72 29 2e 0a | 58 40 69 74 65 6d 20 2d |avior)..|X@item -|
|000039f0| 53 61 73 6d 2d 75 0a 58 | 44 6f 20 6e 6f 74 20 73 |Sasm-u.X|Do not s|
|00003a00| 74 72 69 70 20 74 68 65 | 20 6c 65 61 64 69 6e 67 |trip the| leading|
|00003a10| 20 75 6e 64 65 72 73 63 | 6f 72 65 73 2e 0a 58 40 | undersc|ores..X@|
|00003a20| 69 74 65 6d 20 2d 53 61 | 73 6d 2b 61 40 76 61 72 |item -Sa|sm+a@var|
|00003a30| 7b 3c 63 68 61 72 61 63 | 74 65 72 3e 7d 0a 58 54 |{<charac|ter>}.XT|
|00003a40| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 63 68 61 |he speci|fied cha|
|00003a50| 72 61 63 74 65 72 20 69 | 73 20 61 6c 6c 6f 77 65 |racter i|s allowe|
|00003a60| 64 20 69 6e 20 69 64 65 | 6e 74 69 66 69 65 72 73 |d in ide|ntifiers|
|00003a70| 2e 0a 58 40 69 74 65 6d | 20 2d 53 61 73 6d 2d 61 |..X@item| -Sasm-a|
|00003a80| 40 76 61 72 7b 3c 63 68 | 61 72 61 63 74 65 72 3e |@var{<ch|aracter>|
|00003a90| 7d 0a 58 54 68 65 20 73 | 70 65 63 69 66 69 65 64 |}.XThe s|pecified|
|00003aa0| 20 63 68 61 72 61 63 74 | 65 72 20 69 73 20 61 6c | charact|er is al|
|00003ab0| 6c 6f 77 65 64 20 69 6e | 20 69 64 65 6e 74 69 66 |lowed in| identif|
|00003ac0| 69 65 72 73 2c 20 62 75 | 74 20 61 6e 79 20 69 64 |iers, bu|t any id|
|00003ad0| 65 6e 74 69 66 69 65 72 | 0a 58 63 6f 6e 74 61 69 |entifier|.Xcontai|
|00003ae0| 6e 69 6e 67 20 74 68 61 | 74 20 63 68 61 72 61 63 |ning tha|t charac|
|00003af0| 74 65 72 20 69 73 20 69 | 67 6e 6f 72 65 64 20 28 |ter is i|gnored (|
|00003b00| 6f 66 74 65 6e 20 61 20 | 40 73 61 6d 70 7b 2e 7d |often a |@samp{.}|
|00003b10| 20 6f 72 20 40 73 61 6d | 70 7b 40 40 7d 0a 58 77 | or @sam|p{@@}.Xw|
|00003b20| 69 6c 6c 20 62 65 20 75 | 73 65 64 20 74 6f 20 69 |ill be u|sed to i|
|00003b30| 6e 64 69 63 61 74 65 20 | 61 6e 20 69 6e 74 65 72 |ndicate |an inter|
|00003b40| 6e 61 6c 20 74 65 6d 70 | 20 6c 61 62 65 6c 2c 20 |nal temp| label, |
|00003b50| 79 6f 75 20 6d 61 79 20 | 77 61 6e 74 20 74 6f 0a |you may |want to.|
|00003b60| 58 69 67 6e 6f 72 65 20 | 74 68 65 73 65 29 2e 0a |Xignore |these)..|
|00003b70| 58 40 69 74 65 6d 20 2d | 53 61 73 6d 2b 70 0a 58 |X@item -|Sasm+p.X|
|00003b80| 52 65 63 6f 67 6e 69 7a | 65 20 43 20 70 72 65 70 |Recogniz|e C prep|
|00003b90| 72 6f 63 65 73 73 6f 72 | 20 64 69 72 65 63 74 69 |rocessor| directi|
|00003ba0| 76 65 73 20 69 6e 20 61 | 73 73 65 6d 62 6c 65 72 |ves in a|ssembler|
|00003bb0| 20 73 6f 75 72 63 65 20 | 28 64 65 66 61 75 6c 74 | source |(default|
|00003bc0| 29 2e 0a 58 40 69 74 65 | 6d 20 2d 53 61 73 6d 2d |)..X@ite|m -Sasm-|
|00003bd0| 70 0a 58 44 6f 20 6e 6f | 74 20 72 65 63 6f 67 6e |p.XDo no|t recogn|
|00003be0| 69 7a 65 20 43 20 70 72 | 65 70 72 6f 63 65 73 73 |ize C pr|eprocess|
|00003bf0| 6f 72 20 64 69 72 65 63 | 74 69 76 65 73 20 69 6e |or direc|tives in|
|00003c00| 20 61 73 73 65 6d 62 6c | 65 72 20 73 6f 75 72 63 | assembl|er sourc|
|00003c10| 65 2e 0a 58 40 69 74 65 | 6d 20 2d 53 61 73 6d 2b |e..X@ite|m -Sasm+|
|00003c20| 43 0a 58 53 6b 69 70 20 | 6f 76 65 72 20 43 20 73 |C.XSkip |over C s|
|00003c30| 74 79 6c 65 20 63 6f 6d | 6d 65 6e 74 73 20 69 6e |tyle com|ments in|
|00003c40| 20 61 73 73 65 6d 62 6c | 65 72 20 73 6f 75 72 63 | assembl|er sourc|
|00003c50| 65 20 28 64 65 66 61 75 | 6c 74 29 2e 0a 58 40 69 |e (defau|lt)..X@i|
|00003c60| 74 65 6d 20 2d 53 61 73 | 6d 2d 43 0a 58 44 6f 20 |tem -Sas|m-C.XDo |
|00003c70| 6e 6f 74 20 73 6b 69 70 | 20 6f 76 65 72 20 43 20 |not skip| over C |
|00003c80| 73 74 79 6c 65 20 63 6f | 6d 6d 65 6e 74 73 20 69 |style co|mments i|
|00003c90| 6e 20 61 73 73 65 6d 62 | 6c 65 72 20 73 6f 75 72 |n assemb|ler sour|
|00003ca0| 63 65 2e 0a 58 40 65 6e | 64 20 74 61 62 6c 65 0a |ce..X@en|d table.|
|00003cb0| 58 0a 58 40 6e 6f 64 65 | 20 41 64 64 69 6e 67 20 |X.X@node| Adding |
|00003cc0| 59 6f 75 72 20 4f 77 6e | 20 53 63 61 6e 6e 65 72 |Your Own| Scanner|
|00003cd0| 2c 20 4d 6b 69 64 20 45 | 78 61 6d 70 6c 65 73 2c |, Mkid E|xamples,|
|00003ce0| 20 42 75 69 6c 74 69 6e | 20 53 63 61 6e 6e 65 72 | Builtin| Scanner|
|00003cf0| 73 2c 20 4d 6b 69 64 0a | 58 40 73 65 63 74 69 6f |s, Mkid.|X@sectio|
|00003d00| 6e 20 41 64 64 69 6e 67 | 20 59 6f 75 72 20 4f 77 |n Adding| Your Ow|
|00003d10| 6e 20 53 63 61 6e 6e 65 | 72 0a 58 0a 58 54 68 65 |n Scanne|r.X.XThe|
|00003d20| 72 65 20 61 72 65 20 74 | 77 6f 20 77 61 79 73 20 |re are t|wo ways |
|00003d30| 74 6f 20 61 64 64 20 6e | 65 77 20 73 63 61 6e 6e |to add n|ew scann|
|00003d40| 65 72 73 20 74 6f 20 40 | 63 6f 64 65 7b 6d 6b 69 |ers to @|code{mki|
|00003d50| 64 7d 2e 20 54 68 65 20 | 66 69 72 73 74 20 69 73 |d}. The |first is|
|00003d60| 20 74 6f 0a 58 6d 6f 64 | 69 66 79 20 74 68 65 20 | to.Xmod|ify the |
|00003d70| 63 6f 64 65 20 69 6e 20 | 40 66 69 6c 65 7b 67 65 |code in |@file{ge|
|00003d80| 74 73 63 61 6e 2e 63 7d | 20 61 6e 64 20 61 64 64 |tscan.c}| and add|
|00003d90| 20 61 20 6e 65 77 20 40 | 66 69 6c 65 7b 73 63 61 | a new @|file{sca|
|00003da0| 6e 2d 2a 2e 63 7d 20 66 | 69 6c 65 0a 58 77 69 74 |n-*.c} f|ile.Xwit|
|00003db0| 68 20 74 68 65 20 63 6f | 64 65 20 66 6f 72 20 79 |h the co|de for y|
|00003dc0| 6f 75 72 20 73 63 61 6e | 6e 65 72 2e 20 54 68 69 |our scan|ner. Thi|
|00003dd0| 73 20 69 73 20 6e 6f 74 | 20 74 6f 6f 20 68 61 72 |s is not| too har|
|00003de0| 64 2c 20 62 75 74 20 69 | 74 20 72 65 71 75 69 72 |d, but i|t requir|
|00003df0| 65 73 0a 58 72 65 6c 69 | 6e 6b 69 6e 67 20 61 6e |es.Xreli|nking an|
|00003e00| 64 20 69 6e 73 74 61 6c | 6c 69 6e 67 20 61 20 6e |d instal|ling a n|
|00003e10| 65 77 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 40 63 |ew versi|on of @c|
|00003e20| 6f 64 65 7b 6d 6b 69 64 | 7d 2c 20 77 68 69 63 68 |ode{mkid|}, which|
|00003e30| 20 6d 69 67 68 74 20 62 | 65 0a 58 69 6e 63 6f 6e | might b|e.Xincon|
|00003e40| 76 65 6e 69 65 6e 74 2c | 20 61 6e 64 20 77 6f 75 |venient,| and wou|
|00003e50| 6c 64 20 6c 65 61 64 20 | 74 6f 20 74 68 65 20 70 |ld lead |to the p|
|00003e60| 72 6f 6c 69 66 65 72 61 | 74 69 6f 6e 20 6f 66 20 |rolifera|tion of |
|00003e70| 40 63 6f 64 65 7b 6d 6b | 69 64 7d 0a 58 76 65 72 |@code{mk|id}.Xver|
|00003e80| 73 69 6f 6e 73 2e 0a 58 | 0a 58 54 68 65 20 73 65 |sions..X|.XThe se|
|00003e90| 63 6f 6e 64 20 74 65 63 | 68 6e 69 71 75 65 20 75 |cond tec|hnique u|
|00003ea0| 73 65 73 20 74 68 65 20 | 20 40 63 6f 64 65 7b 2d |ses the | @code{-|
|00003eb0| 53 3c 6c 61 6e 67 3e 2f | 3c 6c 61 6e 67 3e 2f 3c |S<lang>/|<lang>/<|
|00003ec0| 66 69 6c 74 65 72 3e 7d | 20 66 6f 72 6d 0a 58 6f |filter>}| form.Xo|
|00003ed0| 66 20 74 68 65 20 40 63 | 6f 64 65 7b 2d 53 7d 20 |f the @c|ode{-S} |
|00003ee0| 6f 70 74 69 6f 6e 20 74 | 6f 20 73 70 65 63 69 66 |option t|o specif|
|00003ef0| 79 20 61 20 6e 65 77 20 | 6c 61 6e 67 75 61 67 65 |y a new |language|
|00003f00| 20 73 63 61 6e 6e 65 72 | 2e 20 49 6e 20 74 68 69 | scanner|. In thi|
|00003f10| 73 20 66 6f 72 6d 0a 58 | 74 68 65 20 66 69 72 73 |s form.X|the firs|
|00003f20| 74 20 6c 61 6e 67 75 61 | 67 65 20 69 73 20 74 68 |t langua|ge is th|
|00003f30| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 6e 65 |e name o|f the ne|
|00003f40| 77 20 6c 61 6e 67 75 61 | 67 65 20 74 6f 20 62 65 |w langua|ge to be|
|00003f50| 20 64 65 66 69 6e 65 64 | 2c 0a 58 74 68 65 20 73 | defined|,.Xthe s|
|00003f60| 65 63 6f 6e 64 20 6c 61 | 6e 67 75 61 67 65 20 69 |econd la|nguage i|
|00003f70| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 61 6e |s the na|me of an|
|00003f80| 20 65 78 69 73 74 69 6e | 67 20 6c 61 6e 67 75 61 | existin|g langua|
|00003f90| 67 65 20 73 63 61 6e 6e | 65 72 20 74 6f 0a 58 62 |ge scann|er to.Xb|
|00003fa0| 65 20 69 6e 76 6f 6b 65 | 64 20 6f 6e 20 74 68 65 |e invoke|d on the|
|00003fb0| 20 6f 75 74 70 75 74 20 | 6f 66 20 74 68 65 20 66 | output |of the f|
|00003fc0| 69 6c 74 65 72 20 63 6f | 6d 6d 61 6e 64 20 73 70 |ilter co|mmand sp|
|00003fd0| 65 63 69 66 69 65 64 20 | 61 73 20 74 68 65 0a 58 |ecified |as the.X|
|00003fe0| 74 68 69 72 64 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |third co|mponent |
|00003ff0| 6f 66 20 74 68 65 20 40 | 63 6f 64 65 7b 2d 53 7d |of the @|code{-S}|
|00004000| 20 6f 70 74 69 6f 6e 2e | 0a 58 0a 58 54 68 65 20 | option.|.X.XThe |
|00004010| 66 69 6c 74 65 72 20 69 | 73 20 61 6e 20 61 72 62 |filter i|s an arb|
|00004020| 69 74 72 61 72 79 20 73 | 68 65 6c 6c 20 63 6f 6d |itrary s|hell com|
|00004030| 6d 61 6e 64 2e 20 53 6f | 6d 65 77 68 65 72 65 20 |mand. So|mewhere |
|00004040| 69 6e 20 74 68 65 20 66 | 69 6c 74 65 72 20 73 74 |in the f|ilter st|
|00004050| 72 69 6e 67 2c 0a 58 61 | 20 40 63 6f 64 65 7b 25 |ring,.Xa| @code{%|
|00004060| 73 7d 20 73 68 6f 75 6c | 64 20 6f 63 63 75 72 2e |s} shoul|d occur.|
|00004070| 20 54 68 69 73 20 40 63 | 6f 64 65 7b 25 73 7d 20 | This @c|ode{%s} |
|00004080| 69 73 20 72 65 70 6c 61 | 63 65 64 20 62 79 20 74 |is repla|ced by t|
|00004090| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 0a 58 |he name |of the.X|
|000040a0| 73 6f 75 72 63 65 20 66 | 69 6c 65 20 62 65 69 6e |source f|ile bein|
|000040b0| 67 20 73 63 61 6e 6e 65 | 64 2c 20 74 68 65 20 73 |g scanne|d, the s|
|000040c0| 68 65 6c 6c 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 |hell com|mand is |
|000040d0| 69 6e 76 6f 6b 65 64 2c | 20 61 6e 64 20 77 68 61 |invoked,| and wha|
|000040e0| 74 65 76 65 72 0a 58 63 | 6f 6d 65 73 20 6f 75 74 |tever.Xc|omes out|
|000040f0| 20 6f 6e 20 40 76 61 72 | 7b 73 74 64 6f 75 74 7d | on @var|{stdout}|
|00004100| 20 69 73 20 73 63 61 6e | 6e 65 64 20 75 73 69 6e | is scan|ned usin|
|00004110| 67 20 74 68 65 20 62 75 | 69 6c 74 69 6e 20 73 63 |g the bu|iltin sc|
|00004120| 61 6e 6e 65 72 2e 0a 58 | 0a 58 46 6f 72 20 65 78 |anner..X|.XFor ex|
|00004130| 61 6d 70 6c 65 2c 20 6e | 6f 20 73 63 61 6e 6e 65 |ample, n|o scanne|
|00004140| 72 20 69 73 20 70 72 6f | 76 69 64 65 64 20 66 6f |r is pro|vided fo|
|00004150| 72 20 74 65 78 69 6e 66 | 6f 20 66 69 6c 65 73 20 |r texinf|o files |
|00004160| 28 6c 69 6b 65 20 74 68 | 69 73 20 6f 6e 65 29 2e |(like th|is one).|
|00004170| 0a 58 49 66 20 49 20 77 | 69 73 68 65 64 20 74 6f |.XIf I w|ished to|
|00004180| 20 69 6e 64 65 78 20 74 | 68 65 20 63 6f 6e 74 65 | index t|he conte|
|00004190| 6e 74 73 20 6f 66 20 74 | 68 69 73 20 66 69 6c 65 |nts of t|his file|
|000041a0| 2c 20 62 75 74 20 61 76 | 6f 69 64 20 69 6e 64 65 |, but av|oid inde|
|000041b0| 78 69 6e 67 20 74 68 65 | 0a 58 74 65 78 69 6e 66 |xing the|.Xtexinf|
|000041c0| 6f 20 64 69 72 65 63 74 | 69 76 65 73 2c 20 49 20 |o direct|ives, I |
|000041d0| 77 6f 75 6c 64 20 6e 65 | 65 64 20 61 20 66 69 6c |would ne|ed a fil|
|000041e0| 74 65 72 20 74 68 61 74 | 20 73 74 72 69 70 70 65 |ter that| strippe|
|000041f0| 64 20 6f 75 74 20 74 68 | 65 20 74 65 78 69 6e 66 |d out th|e texinf|
|00004200| 6f 0a 58 64 69 72 65 63 | 74 69 76 65 73 2c 20 62 |o.Xdirec|tives, b|
|00004210| 75 74 20 6c 65 66 74 20 | 74 68 65 20 72 65 6d 61 |ut left |the rema|
|00004220| 69 6e 64 65 72 20 6f 66 | 20 74 68 65 20 66 69 6c |inder of| the fil|
|00004230| 65 20 69 6e 74 61 63 74 | 2e 20 49 20 63 6f 75 6c |e intact|. I coul|
|00004240| 64 20 74 68 65 6e 20 75 | 73 65 0a 58 74 68 65 20 |d then u|se.Xthe |
|00004250| 70 6c 61 69 6e 20 74 65 | 78 74 20 73 63 61 6e 6e |plain te|xt scann|
|00004260| 65 72 20 6f 6e 20 74 68 | 65 20 72 65 6d 61 69 6e |er on th|e remain|
|00004270| 64 65 72 2e 20 41 20 71 | 75 69 63 6b 20 77 61 79 |der. A q|uick way|
|00004280| 20 74 6f 20 73 70 65 63 | 69 66 79 20 74 68 69 73 | to spec|ify this|
|00004290| 0a 58 6d 69 67 68 74 20 | 62 65 3a 0a 58 0a 58 40 |.Xmight |be:.X.X@|
|000042a0| 65 78 61 6d 70 6c 65 0a | 58 27 2d 53 2f 74 65 78 |example.|X'-S/tex|
|000042b0| 69 6e 66 6f 2f 74 65 78 | 74 2f 73 65 64 20 73 2c |info/tex|t/sed s,|
|000042c0| 40 40 5b 61 2d 7a 5d 2a | 2c 2c 67 20 3c 20 25 73 |@@[a-z]*|,,g < %s|
|000042d0| 27 0a 58 40 65 6e 64 20 | 65 78 61 6d 70 6c 65 0a |'.X@end |example.|
|000042e0| 58 0a 58 54 68 69 73 20 | 64 65 66 69 6e 65 73 20 |X.XThis |defines |
|000042f0| 61 20 6e 65 77 20 6c 61 | 6e 67 75 61 67 65 20 73 |a new la|nguage s|
|00004300| 63 61 6e 6e 65 72 20 28 | 40 76 61 72 7b 74 65 78 |canner (|@var{tex|
|00004310| 69 6e 66 6f 7d 29 20 64 | 65 66 69 6e 65 64 20 69 |info}) d|efined i|
|00004320| 6e 20 74 65 72 6d 73 20 | 6f 66 0a 58 61 20 40 63 |n terms |of.Xa @c|
|00004330| 6f 64 65 7b 73 65 64 7d | 20 63 6f 6d 6d 61 6e 64 |ode{sed}| command|
|00004340| 20 74 6f 20 73 74 72 69 | 70 20 6f 75 74 20 74 65 | to stri|p out te|
|00004350| 78 69 6e 66 6f 20 64 69 | 72 65 63 74 69 76 65 73 |xinfo di|rectives|
|00004360| 20 28 61 74 20 73 69 67 | 6e 73 20 66 6f 6c 6c 6f | (at sig|ns follo|
|00004370| 77 65 64 0a 58 62 79 20 | 6c 65 74 74 65 72 73 29 |wed.Xby |letters)|
|00004380| 2e 20 4f 6e 63 65 20 74 | 68 65 20 64 69 72 65 63 |. Once t|he direc|
|00004390| 74 69 76 65 73 20 61 72 | 65 20 73 74 72 69 70 70 |tives ar|e stripp|
|000043a0| 65 64 2c 20 74 68 65 20 | 72 65 6d 61 69 6e 69 6e |ed, the |remainin|
|000043b0| 67 20 74 65 78 74 20 69 | 73 20 72 75 6e 0a 58 74 |g text i|s run.Xt|
|000043c0| 68 72 6f 75 67 68 20 74 | 68 65 20 70 6c 61 69 6e |hrough t|he plain|
|000043d0| 20 74 65 78 74 20 73 63 | 61 6e 6e 65 72 2e 0a 58 | text sc|anner..X|
|000043e0| 0a 58 54 68 69 73 20 69 | 73 20 6a 75 73 74 20 61 |.XThis i|s just a|
|000043f0| 6e 20 65 78 61 6d 70 6c | 65 2c 20 74 6f 20 64 6f |n exampl|e, to do|
|00004400| 20 61 20 62 65 74 74 65 | 72 20 6a 6f 62 20 49 20 | a bette|r job I |
|00004410| 77 6f 75 6c 64 20 61 63 | 74 75 61 6c 6c 79 20 6e |would ac|tually n|
|00004420| 65 65 64 20 74 6f 0a 58 | 64 65 6c 65 74 65 20 73 |eed to.X|delete s|
|00004430| 6f 6d 65 20 6c 69 6e 65 | 73 20 28 73 75 63 68 20 |ome line|s (such |
|00004440| 61 73 20 74 68 6f 73 65 | 20 62 65 67 69 6e 6e 69 |as those| beginni|
|00004450| 6e 67 20 77 69 74 68 20 | 40 63 6f 64 65 7b 40 40 |ng with |@code{@@|
|00004460| 65 6e 64 7d 29 20 61 73 | 20 77 65 6c 6c 0a 58 61 |end}) as| well.Xa|
|00004470| 73 20 64 65 6c 65 74 69 | 6e 67 20 74 68 65 20 40 |s deleti|ng the @|
|00004480| 63 6f 64 65 7b 40 40 7d | 20 64 69 72 65 63 74 69 |code{@@}| directi|
|00004490| 76 65 73 20 65 6d 62 65 | 64 64 65 64 20 69 6e 20 |ves embe|dded in |
|000044a0| 74 68 65 20 74 65 78 74 | 2e 0a 58 0a 58 40 6e 6f |the text|..X.X@no|
|000044b0| 64 65 20 4d 6b 69 64 20 | 45 78 61 6d 70 6c 65 73 |de Mkid |Examples|
|000044c0| 2c 20 20 2c 20 41 64 64 | 69 6e 67 20 59 6f 75 72 |, , Add|ing Your|
|000044d0| 20 4f 77 6e 20 53 63 61 | 6e 6e 65 72 2c 20 4d 6b | Own Sca|nner, Mk|
|000044e0| 69 64 0a 58 40 73 65 63 | 74 69 6f 6e 20 4d 6b 69 |id.X@sec|tion Mki|
|000044f0| 64 20 45 78 61 6d 70 6c | 65 73 0a 58 0a 58 54 68 |d Exampl|es.X.XTh|
|00004500| 65 20 73 69 6d 70 6c 65 | 73 74 20 65 78 61 6d 70 |e simple|st examp|
|00004510| 6c 65 20 6f 66 20 40 63 | 6f 64 65 7b 6d 6b 69 64 |le of @c|ode{mkid|
|00004520| 7d 20 69 73 20 73 6f 6d | 65 74 68 69 6e 67 20 6c |} is som|ething l|
|00004530| 69 6b 65 3a 0a 58 0a 58 | 40 65 78 61 6d 70 6c 65 |ike:.X.X|@example|
|00004540| 0a 58 6d 6b 69 64 20 2a | 2e 5b 63 68 79 5d 0a 58 |.Xmkid *|.[chy].X|
|00004550| 40 65 6e 64 20 65 78 61 | 6d 70 6c 65 0a 58 0a 58 |@end exa|mple.X.X|
|00004560| 54 68 69 73 20 77 69 6c | 6c 20 62 75 69 6c 64 20 |This wil|l build |
|00004570| 61 6e 20 49 44 20 64 61 | 74 61 62 61 73 65 20 69 |an ID da|tabase i|
|00004580| 6e 64 65 78 69 6e 67 20 | 61 6c 6c 20 74 68 65 0a |ndexing |all the.|
|00004590| 58 69 64 65 6e 74 69 66 | 69 65 72 73 20 61 6e 64 |Xidentif|iers and|
|000045a0| 20 6e 75 6d 62 65 72 73 | 20 69 6e 20 74 68 65 20 | numbers| in the |
|000045b0| 40 66 69 6c 65 7b 2e 63 | 7d 2c 20 40 66 69 6c 65 |@file{.c|}, @file|
|000045c0| 7b 2e 68 7d 2c 20 61 6e | 64 20 40 66 69 6c 65 7b |{.h}, an|d @file{|
|000045d0| 2e 79 7d 20 66 69 6c 65 | 73 0a 58 69 6e 20 74 68 |.y} file|s.Xin th|
|000045e0| 65 20 63 75 72 72 65 6e | 74 20 64 69 72 65 63 74 |e curren|t direct|
|000045f0| 6f 72 79 2e 20 42 65 63 | 61 75 73 65 20 74 68 6f |ory. Bec|ause tho|
|00004600| 73 65 20 73 75 66 66 69 | 78 65 73 20 61 72 65 20 |se suffi|xes are |
|00004610| 61 6c 72 65 61 64 79 20 | 6b 6e 6f 77 6e 20 74 6f |already |known to|
|00004620| 0a 58 40 63 6f 64 65 7b | 6d 6b 69 64 7d 20 61 73 |.X@code{|mkid} as|
|00004630| 20 43 20 6c 61 6e 67 75 | 61 67 65 20 66 69 6c 65 | C langu|age file|
|00004640| 73 2c 20 6e 6f 20 6f 74 | 68 65 72 20 73 70 65 63 |s, no ot|her spec|
|00004650| 69 61 6c 20 61 72 67 75 | 6d 65 6e 74 73 20 61 72 |ial argu|ments ar|
|00004660| 65 20 72 65 71 75 69 72 | 65 64 2e 0a 58 0a 58 46 |e requir|ed..X.XF|
|00004670| 72 6f 6d 20 61 20 73 69 | 6d 70 6c 65 20 65 78 61 |rom a si|mple exa|
|00004680| 6d 70 6c 65 2c 20 6c 65 | 74 73 20 67 6f 20 74 6f |mple, le|ts go to|
|00004690| 20 61 20 6d 6f 72 65 20 | 63 6f 6d 70 6c 65 78 20 | a more |complex |
|000046a0| 6f 6e 65 2e 20 53 75 70 | 70 6f 73 65 20 79 6f 75 |one. Sup|pose you|
|000046b0| 20 77 61 6e 74 0a 58 74 | 6f 20 62 75 69 6c 64 20 | want.Xt|o build |
|000046c0| 61 20 64 61 74 61 62 61 | 73 65 20 69 6e 64 65 78 |a databa|se index|
|000046d0| 69 6e 67 20 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |ing the |contents|
|000046e0| 20 6f 66 20 61 6c 6c 20 | 74 68 65 20 40 76 61 72 | of all |the @var|
|000046f0| 7b 6d 61 6e 7d 20 70 61 | 67 65 73 2e 0a 58 53 69 |{man} pa|ges..XSi|
|00004700| 6e 63 65 20 40 63 6f 64 | 65 7b 6d 6b 69 64 7d 20 |nce @cod|e{mkid} |
|00004710| 61 6c 72 65 61 64 79 20 | 6b 6e 6f 77 73 20 68 6f |already |knows ho|
|00004720| 77 20 74 6f 20 64 65 61 | 6c 20 77 69 74 68 20 40 |w to dea|l with @|
|00004730| 66 69 6c 65 7b 2e 7a 7d | 20 66 69 6c 65 73 2c 20 |file{.z}| files, |
|00004740| 6c 65 74 27 73 0a 58 61 | 73 73 75 6d 65 20 79 6f |let's.Xa|ssume yo|
|00004750| 75 72 20 73 79 73 74 65 | 6d 20 69 73 20 75 73 69 |ur syste|m is usi|
|00004760| 6e 67 20 74 68 65 20 40 | 63 6f 64 65 7b 63 6f 6d |ng the @|code{com|
|00004770| 70 72 65 73 73 7d 20 70 | 72 6f 67 72 61 6d 20 74 |press} p|rogram t|
|00004780| 6f 20 73 74 6f 72 65 0a | 58 63 6f 6d 70 72 65 73 |o store.|Xcompres|
|00004790| 73 65 64 20 63 61 74 74 | 61 62 6c 65 20 76 65 72 |sed catt|able ver|
|000047a0| 73 69 6f 6e 73 20 6f 66 | 20 74 68 65 20 40 76 61 |sions of| the @va|
|000047b0| 72 7b 6d 61 6e 7d 20 70 | 61 67 65 73 2e 20 20 54 |r{man} p|ages. T|
|000047c0| 68 65 0a 58 40 63 6f 64 | 65 7b 63 6f 6d 70 72 65 |he.X@cod|e{compre|
|000047d0| 73 73 7d 20 70 72 6f 67 | 72 61 6d 20 63 72 65 61 |ss} prog|ram crea|
|000047e0| 74 65 73 20 66 69 6c 65 | 73 20 77 69 74 68 20 61 |tes file|s with a|
|000047f0| 20 40 63 6f 64 65 7b 2e | 5a 7d 20 73 75 66 66 69 | @code{.|Z} suffi|
|00004800| 78 2c 20 73 6f 0a 58 40 | 63 6f 64 65 7b 6d 6b 69 |x, so.X@|code{mki|
|00004810| 64 7d 20 77 69 6c 6c 20 | 68 61 76 65 20 74 6f 20 |d} will |have to |
|00004820| 62 65 20 74 6f 6c 64 20 | 68 6f 77 20 74 6f 20 73 |be told |how to s|
|00004830| 63 61 6e 20 40 66 69 6c | 65 7b 2e 5a 7d 20 66 69 |can @fil|e{.Z} fi|
|00004840| 6c 65 73 2e 20 54 68 65 | 0a 58 66 6f 6c 6c 6f 77 |les. The|.Xfollow|
|00004850| 69 6e 67 20 63 6f 64 65 | 20 73 68 6f 77 73 20 68 |ing code| shows h|
|00004860| 6f 77 20 74 6f 20 63 6f | 6d 62 69 6e 65 20 74 68 |ow to co|mbine th|
|00004870| 65 20 40 63 6f 64 65 7b | 66 69 6e 64 7d 20 63 6f |e @code{|find} co|
|00004880| 6d 6d 61 6e 64 20 77 69 | 74 68 20 74 68 65 0a 58 |mmand wi|th the.X|
|00004890| 73 70 65 63 69 61 6c 20 | 73 63 61 6e 6e 65 72 20 |special |scanner |
|000048a0| 61 72 67 75 6d 65 6e 74 | 73 20 74 6f 20 40 63 6f |argument|s to @co|
|000048b0| 64 65 7b 6d 6b 69 64 7d | 20 74 6f 20 67 65 6e 65 |de{mkid}| to gene|
|000048c0| 72 61 74 65 20 74 68 65 | 20 72 65 71 75 69 72 65 |rate the| require|
|000048d0| 64 20 49 44 0a 58 64 61 | 74 61 62 61 73 65 3a 0a |d ID.Xda|tabase:.|
|000048e0| 58 0a 58 40 65 78 61 6d | 70 6c 65 0a 58 63 64 20 |X.X@exam|ple.Xcd |
|000048f0| 2f 75 73 72 2f 63 61 74 | 6d 61 6e 0a 58 66 69 6e |/usr/cat|man.Xfin|
|00004900| 64 20 2e 20 2d 6e 61 6d | 65 20 27 2a 2e 5a 27 20 |d . -nam|e '*.Z' |
|00004910| 2d 70 72 69 6e 74 20 7c | 20 6d 6b 69 64 20 27 2d |-print || mkid '-|
|00004920| 53 6d 61 6e 2f 74 65 78 | 74 2f 75 6e 63 6f 6d 70 |Sman/tex|t/uncomp|
|00004930| 72 65 73 73 20 2d 63 20 | 3c 20 25 73 27 20 2d 53 |ress -c |< %s' -S|
|00004940| 2e 5a 3d 6d 61 6e 20 2d | 0a 58 40 65 6e 64 20 65 |.Z=man -|.X@end e|
|00004950| 78 61 6d 70 6c 65 0a 58 | 0a 58 54 68 69 73 20 65 |xample.X|.XThis e|
|00004960| 78 61 6d 70 6c 65 20 66 | 69 72 73 74 20 73 77 69 |xample f|irst swi|
|00004970| 74 63 68 65 73 20 74 6f | 20 74 68 65 20 40 66 69 |tches to| the @fi|
|00004980| 6c 65 7b 2f 75 73 72 2f | 63 61 74 6d 61 6e 7d 20 |le{/usr/|catman} |
|00004990| 64 69 72 65 63 74 6f 72 | 79 20 77 68 65 72 65 0a |director|y where.|
|000049a0| 58 74 68 65 20 63 6f 6d | 70 72 65 73 73 65 64 20 |Xthe com|pressed |
|000049b0| 40 76 61 72 7b 6d 61 6e | 7d 20 70 61 67 65 73 20 |@var{man|} pages |
|000049c0| 61 72 65 20 73 74 6f 72 | 65 64 2e 20 54 68 65 20 |are stor|ed. The |
|000049d0| 40 63 6f 64 65 7b 66 69 | 6e 64 7d 20 63 6f 6d 6d |@code{fi|nd} comm|
|000049e0| 61 6e 64 20 74 68 65 6e | 0a 58 66 69 6e 64 73 20 |and then|.Xfinds |
|000049f0| 61 6c 6c 20 74 68 65 20 | 40 66 69 6c 65 7b 2e 5a |all the |@file{.Z|
|00004a00| 7d 20 66 69 6c 65 73 20 | 75 6e 64 65 72 20 74 68 |} files |under th|
|00004a10| 61 74 20 64 69 72 65 63 | 74 6f 72 79 20 61 6e 64 |at direc|tory and|
|00004a20| 20 70 72 69 6e 74 73 20 | 74 68 65 69 72 0a 58 6e | prints |their.Xn|
|00004a30| 61 6d 65 73 2e 20 20 54 | 68 69 73 20 6c 69 73 74 |ames. T|his list|
|00004a40| 20 69 73 20 70 69 70 65 | 64 20 69 6e 74 6f 20 74 | is pipe|d into t|
|00004a50| 68 65 20 40 63 6f 64 65 | 7b 6d 6b 69 64 7d 20 70 |he @code|{mkid} p|
|00004a60| 72 6f 67 72 61 6d 2e 20 | 54 68 65 20 40 63 6f 64 |rogram. |The @cod|
|00004a70| 65 7b 2d 7d 0a 58 61 72 | 67 75 6d 65 6e 74 20 62 |e{-}.Xar|gument b|
|00004a80| 79 20 69 74 73 65 6c 66 | 20 28 61 74 20 74 68 65 |y itself| (at the|
|00004a90| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 6c 69 6e 65 | end of |the line|
|00004aa0| 29 20 74 65 6c 6c 73 20 | 40 63 6f 64 65 7b 6d 6b |) tells |@code{mk|
|00004ab0| 69 64 7d 20 74 6f 20 72 | 65 61 64 0a 58 61 72 67 |id} to r|ead.Xarg|
|00004ac0| 75 6d 65 6e 74 73 20 28 | 69 6e 20 74 68 69 73 20 |uments (|in this |
|00004ad0| 63 61 73 65 20 74 68 65 | 20 6c 69 73 74 20 6f 66 |case the| list of|
|00004ae0| 20 66 69 6c 65 20 6e 61 | 6d 65 73 29 20 66 72 6f | file na|mes) fro|
|00004af0| 6d 20 40 76 61 72 7b 73 | 74 64 69 6e 7d 2e 20 54 |m @var{s|tdin}. T|
|00004b00| 68 65 0a 58 66 69 72 73 | 74 20 40 63 6f 64 65 7b |he.Xfirs|t @code{|
|00004b10| 2d 53 7d 20 61 72 67 75 | 6d 65 6e 74 20 64 65 66 |-S} argu|ment def|
|00004b20| 69 6e 65 73 20 61 20 6e | 65 77 20 6c 61 6e 67 75 |ines a n|ew langu|
|00004b30| 61 67 65 20 28 40 76 61 | 72 7b 6d 61 6e 7d 29 20 |age (@va|r{man}) |
|00004b40| 69 6e 20 74 65 72 6d 73 | 20 6f 66 0a 58 74 68 65 |in terms| of.Xthe|
|00004b50| 20 40 63 6f 64 65 7b 75 | 6e 63 6f 6d 70 72 65 73 | @code{u|ncompres|
|00004b60| 73 7d 20 75 74 69 6c 69 | 74 79 20 61 6e 64 20 74 |s} utili|ty and t|
|00004b70| 68 65 20 65 78 69 73 74 | 69 6e 67 20 74 65 78 74 |he exist|ing text|
|00004b80| 20 73 63 61 6e 6e 65 72 | 2e 20 54 68 65 20 73 65 | scanner|. The se|
|00004b90| 63 6f 6e 64 0a 58 40 63 | 6f 64 65 7b 2d 53 7d 20 |cond.X@c|ode{-S} |
|00004ba0| 61 72 67 75 6d 65 6e 74 | 20 74 65 6c 6c 73 20 40 |argument| tells @|
|00004bb0| 63 6f 64 65 7b 6d 6b 69 | 64 7d 20 74 6f 20 74 72 |code{mki|d} to tr|
|00004bc0| 65 61 74 20 61 6c 6c 20 | 40 66 69 6c 65 7b 2e 5a |eat all |@file{.Z|
|00004bd0| 7d 20 66 69 6c 65 73 20 | 61 73 0a 58 6c 61 6e 67 |} files |as.Xlang|
|00004be0| 75 61 67 65 20 40 76 61 | 72 7b 6d 61 6e 7d 2e 20 |uage @va|r{man}. |
|00004bf0| 49 6e 20 70 72 61 63 74 | 69 63 65 2c 20 79 6f 75 |In pract|ice, you|
|00004c00| 20 6d 69 67 68 74 20 66 | 69 6e 64 20 74 68 65 20 | might f|ind the |
|00004c10| 40 63 6f 64 65 7b 6d 6b | 69 64 7d 0a 58 61 72 67 |@code{mk|id}.Xarg|
|00004c20| 75 6d 65 6e 74 73 20 6e | 65 65 64 20 74 6f 20 62 |uments n|eed to b|
|00004c30| 65 20 65 76 65 6e 20 6d | 6f 72 65 20 63 6f 6d 70 |e even m|ore comp|
|00004c40| 6c 65 78 2c 20 73 6f 6d | 65 74 68 69 6e 67 20 6c |lex, som|ething l|
|00004c50| 69 6b 65 3a 0a 58 0a 58 | 40 65 78 61 6d 70 6c 65 |ike:.X.X|@example|
|00004c60| 0a 58 6d 6b 69 64 20 27 | 2d 53 6d 61 6e 2f 74 65 |.Xmkid '|-Sman/te|
|00004c70| 78 74 2f 75 6e 63 6f 6d | 70 72 65 73 73 20 2d 63 |xt/uncom|press -c|
|00004c80| 20 3c 20 25 73 20 7c 20 | 63 6f 6c 20 2d 62 27 20 | < %s | |col -b' |
|00004c90| 2d 53 2e 5a 3d 6d 61 6e | 20 2d 0a 58 40 65 6e 64 |-S.Z=man| -.X@end|
|00004ca0| 20 65 78 61 6d 70 6c 65 | 0a 58 0a 58 54 68 69 73 | example|.X.XThis|
|00004cb0| 20 77 69 6c 6c 20 74 61 | 6b 65 20 74 68 65 20 61 | will ta|ke the a|
|00004cc0| 64 64 69 74 69 6f 6e 61 | 6c 20 73 74 65 70 20 6f |dditiona|l step o|
|00004cd0| 66 20 67 65 74 74 69 6e | 67 20 72 69 64 20 6f 66 |f gettin|g rid of|
|00004ce0| 20 61 6e 79 20 75 6e 64 | 65 72 6c 69 6e 69 6e 67 | any und|erlining|
|00004cf0| 20 61 6e 64 0a 58 62 61 | 63 6b 73 70 61 63 69 6e | and.Xba|ckspacin|
|00004d00| 67 20 77 68 69 63 68 20 | 6d 69 67 68 74 20 62 65 |g which |might be|
|00004d10| 20 70 72 65 73 65 6e 74 | 20 69 6e 20 74 68 65 20 | present| in the |
|00004d20| 63 6f 6d 70 72 65 73 73 | 65 64 20 40 76 61 72 7b |compress|ed @var{|
|00004d30| 6d 61 6e 7d 20 70 61 67 | 65 73 2e 0a 58 0a 58 40 |man} pag|es..X.X@|
|00004d40| 6e 6f 64 65 20 44 61 74 | 61 62 61 73 65 20 51 75 |node Dat|abase Qu|
|00004d50| 65 72 79 20 54 6f 6f 6c | 73 2c 20 49 69 64 2c 20 |ery Tool|s, Iid, |
|00004d60| 4d 6b 69 64 2c 20 54 6f | 70 0a 58 40 63 68 61 70 |Mkid, To|p.X@chap|
|00004d70| 74 65 72 20 44 61 74 61 | 62 61 73 65 20 51 75 65 |ter Data|base Que|
|00004d80| 72 79 20 54 6f 6f 6c 73 | 0a 58 0a 58 54 68 65 20 |ry Tools|.X.XThe |
|00004d90| 49 44 20 64 61 74 61 62 | 61 73 65 20 69 73 20 75 |ID datab|ase is u|
|00004da0| 73 65 6c 65 73 73 20 77 | 69 74 68 6f 75 74 20 64 |seless w|ithout d|
|00004db0| 61 74 61 62 61 73 65 20 | 71 75 65 72 79 20 74 6f |atabase |query to|
|00004dc0| 6f 6c 73 2e 20 54 68 65 | 20 72 65 6d 61 69 6e 64 |ols. The| remaind|
|00004dd0| 65 72 0a 58 6f 66 20 74 | 68 69 73 20 64 6f 63 75 |er.Xof t|his docu|
|00004de0| 6d 65 6e 74 20 64 65 73 | 63 72 69 62 65 73 20 74 |ment des|cribes t|
|00004df0| 68 6f 73 65 20 74 6f 6f | 6c 73 2e 0a 58 0a 58 54 |hose too|ls..X.XT|
|00004e00| 68 65 20 40 63 6f 64 65 | 7b 6c 69 64 7d 2c 20 40 |he @code|{lid}, @|
|00004e10| 63 6f 64 65 7b 67 69 64 | 7d 2c 0a 58 40 63 6f 64 |code{gid|},.X@cod|
|00004e20| 65 7b 61 69 64 7d 2c 20 | 40 63 6f 64 65 7b 65 69 |e{aid}, |@code{ei|
|00004e30| 64 7d 2c 20 61 6e 64 20 | 40 63 6f 64 65 7b 70 69 |d}, and |@code{pi|
|00004e40| 64 7d 20 70 72 6f 67 72 | 61 6d 73 20 61 72 65 20 |d} progr|ams are |
|00004e50| 61 6c 6c 20 74 68 65 20 | 73 61 6d 65 20 70 72 6f |all the |same pro|
|00004e60| 67 72 61 6d 0a 58 69 6e | 73 74 61 6c 6c 65 64 20 |gram.Xin|stalled |
|00004e70| 77 69 74 68 20 6c 69 6e | 6b 73 20 74 6f 20 64 69 |with lin|ks to di|
|00004e80| 66 66 65 72 65 6e 74 20 | 6e 61 6d 65 73 2e 20 54 |fferent |names. T|
|00004e90| 68 65 20 6e 61 6d 65 20 | 75 73 65 64 20 74 6f 20 |he name |used to |
|00004ea0| 69 6e 76 6f 6b 65 20 74 | 68 65 0a 58 70 72 6f 67 |invoke t|he.Xprog|
|00004eb0| 72 61 6d 20 64 65 74 65 | 72 6d 69 6e 65 73 20 68 |ram dete|rmines h|
|00004ec0| 6f 77 20 69 74 20 77 69 | 6c 6c 20 61 63 74 2e 0a |ow it wi|ll act..|
|00004ed0| 58 0a 58 54 68 65 20 40 | 63 6f 64 65 7b 69 69 64 |X.XThe @|code{iid|
|00004ee0| 7d 20 70 72 6f 67 72 61 | 6d 20 69 73 20 61 6e 20 |} progra|m is an |
|00004ef0| 69 6e 74 65 72 61 63 74 | 69 76 65 20 71 75 65 72 |interact|ive quer|
|00004f00| 79 20 73 68 65 6c 6c 20 | 74 68 61 74 20 73 69 74 |y shell |that sit|
|00004f10| 73 20 6f 6e 20 74 6f 70 | 0a 58 6f 66 20 74 68 65 |s on top|.Xof the|
|00004f20| 20 6f 74 68 65 72 20 71 | 75 65 72 79 20 74 6f 6f | other q|uery too|
|00004f30| 6c 73 2e 0a 58 0a 58 40 | 6d 65 6e 75 0a 58 2a 20 |ls..X.X@|menu.X* |
|00004f40| 43 6f 6d 6d 6f 6e 20 4f | 70 74 69 6f 6e 73 3a 3a |Common O|ptions::|
|00004f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 6f | | Co|
|00004f60| 6d 6d 6f 6e 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e |mmon com|mand lin|
|00004f70| 65 20 6f 70 74 69 6f 6e | 73 0a 58 2a 20 50 61 74 |e option|s.X* Pat|
|00004f80| 74 65 72 6e 73 3a 3a 20 | 20 20 20 20 20 20 20 20 |terns:: | |
|00004f90| 20 20 20 20 20 20 20 20 | 20 20 20 49 64 65 6e 74 | | Ident|
|00004fa0| 69 66 69 65 72 20 70 61 | 74 74 65 72 6e 20 6d 61 |ifier pa|ttern ma|
|00004fb0| 74 63 68 69 6e 67 0a 58 | 2a 20 4c 69 64 3a 3a 20 |tching.X|* Lid:: |
|00004fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004fd0| 20 20 20 20 20 20 20 20 | 4c 6f 6f 6b 20 75 70 20 | |Look up |
|00004fe0| 69 64 65 6e 74 69 66 69 | 65 72 73 0a 58 2a 20 41 |identifi|ers.X* A|
|00004ff0| 69 64 3a 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |id:: | |
|00005000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 43 61 73 | | Cas|
|00005010| 65 20 69 6e 73 65 6e 73 | 69 74 69 76 65 20 6c 69 |e insens|itive li|
|00005020| 64 0a 58 2a 20 47 69 64 | 3a 3a 20 20 20 20 20 20 |d.X* Gid|:: |
|00005030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005040| 20 20 20 47 72 65 70 20 | 66 6f 72 20 69 64 65 6e | Grep |for iden|
|00005050| 74 69 66 69 65 72 73 0a | 58 2a 20 45 69 64 3a 3a |tifiers.|X* Eid::|
|00005060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005070| 20 20 20 20 20 20 20 20 | 20 45 64 69 74 20 66 69 | | Edit fi|
|00005080| 6c 65 73 20 77 69 74 68 | 20 6d 61 74 63 68 69 6e |les with| matchin|
|00005090| 67 20 69 64 65 6e 74 69 | 66 69 65 72 73 0a 58 2a |g identi|fiers.X*|
|000050a0| 20 50 69 64 3a 3a 20 20 | 20 20 20 20 20 20 20 20 | Pid:: | |
|000050b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4c | | L|
|000050c0| 6f 6f 6b 20 75 70 20 70 | 61 74 68 20 6e 61 6d 65 |ook up p|ath name|
|000050d0| 73 20 69 6e 20 64 61 74 | 61 62 61 73 65 0a 58 40 |s in dat|abase.X@|
|000050e0| 65 6e 64 20 6d 65 6e 75 | 0a 58 0a 58 40 6e 6f 64 |end menu|.X.X@nod|
|000050f0| 65 20 43 6f 6d 6d 6f 6e | 20 4f 70 74 69 6f 6e 73 |e Common| Options|
|00005100| 2c 20 50 61 74 74 65 72 | 6e 73 2c 20 44 61 74 61 |, Patter|ns, Data|
|00005110| 62 61 73 65 20 51 75 65 | 72 79 20 54 6f 6f 6c 73 |base Que|ry Tools|
|00005120| 2c 20 44 61 74 61 62 61 | 73 65 20 51 75 65 72 79 |, Databa|se Query|
|00005130| 20 54 6f 6f 6c 73 0a 58 | 40 73 65 63 74 69 6f 6e | Tools.X|@section|
|00005140| 20 43 6f 6d 6d 6f 6e 20 | 4f 70 74 69 6f 6e 73 0a | Common |Options.|
|00005150| 58 0a 58 53 69 6e 63 65 | 20 6d 61 6e 79 20 6f 66 |X.XSince| many of|
|00005160| 20 74 68 65 20 70 72 6f | 67 72 61 6d 73 20 61 72 | the pro|grams ar|
|00005170| 65 20 72 65 61 6c 6c 79 | 20 6c 69 6e 6b 73 20 74 |e really| links t|
|00005180| 6f 20 6f 6e 65 20 63 6f | 6d 6d 6f 6e 20 70 72 6f |o one co|mmon pro|
|00005190| 67 72 61 6d 2c 20 69 74 | 0a 58 69 73 20 6f 6e 6c |gram, it|.Xis onl|
|000051a0| 79 20 72 65 61 73 6f 6e | 61 62 6c 65 20 74 6f 20 |y reason|able to |
|000051b0| 65 78 70 65 63 74 20 74 | 68 61 74 20 6d 6f 73 74 |expect t|hat most|
|000051c0| 20 6f 66 20 74 68 65 20 | 71 75 65 72 79 20 74 6f | of the |query to|
|000051d0| 6f 6c 73 20 77 6f 75 6c | 64 20 73 68 61 72 65 0a |ols woul|d share.|
|000051e0| 58 63 6f 6d 6d 6f 6e 20 | 63 6f 6d 6d 61 6e 64 20 |Xcommon |command |
|000051f0| 6c 69 6e 65 20 6f 70 74 | 69 6f 6e 73 2e 20 4e 6f |line opt|ions. No|
|00005200| 74 20 61 6c 6c 20 6f 70 | 74 69 6f 6e 73 20 6d 61 |t all op|tions ma|
|00005210| 6b 65 20 73 65 6e 73 65 | 20 66 6f 72 20 61 6c 6c |ke sense| for all|
|00005220| 20 70 72 6f 67 72 61 6d | 73 2c 0a 58 62 75 74 20 | program|s,.Xbut |
|00005230| 74 68 65 79 20 61 72 65 | 20 61 6c 6c 20 64 65 73 |they are| all des|
|00005240| 63 72 69 62 65 64 20 68 | 65 72 65 2e 20 54 68 65 |cribed h|ere. The|
|00005250| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 6f 66 20 | descrip|tion of |
|00005260| 65 61 63 68 20 70 72 6f | 67 72 61 6d 0a 58 67 69 |each pro|gram.Xgi|
|00005270| 76 65 73 20 74 68 65 20 | 6f 70 74 69 6f 6e 73 20 |ves the |options |
|00005280| 74 68 61 74 20 70 72 6f | 67 72 61 6d 20 75 73 65 |that pro|gram use|
|00005290| 73 2e 0a 58 0a 58 40 74 | 61 62 6c 65 20 40 63 6f |s..X.X@t|able @co|
|000052a0| 64 65 0a 58 40 69 74 65 | 6d 20 2d 66 40 76 61 72 |de.X@ite|m -f@var|
|000052b0| 7b 3c 66 69 6c 65 3e 7d | 0a 58 52 65 61 64 20 74 |{<file>}|.XRead t|
|000052c0| 68 65 20 64 61 74 61 62 | 61 73 65 20 73 70 65 63 |he datab|ase spec|
|000052d0| 69 66 69 65 64 20 62 79 | 20 40 76 61 72 7b 3c 66 |ified by| @var{<f|
|000052e0| 69 6c 65 3e 7d 2e 20 4e | 6f 72 6d 61 6c 6c 79 20 |ile>}. N|ormally |
|000052f0| 74 68 65 20 74 6f 6f 6c | 73 20 6c 6f 6f 6b 0a 58 |the tool|s look.X|
|00005300| 66 6f 72 20 61 20 66 69 | 6c 65 20 6e 61 6d 65 64 |for a fi|le named|
|00005310| 20 40 66 69 6c 65 7b 49 | 44 7d 20 69 6e 20 65 69 | @file{I|D} in ei|
|00005320| 74 68 65 72 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ther the| current|
|00005330| 20 64 69 72 65 63 74 6f | 72 79 20 6f 72 20 69 6e | directo|ry or in|
|00005340| 20 61 6e 79 0a 58 6f 66 | 20 74 68 65 20 64 69 72 | any.Xof| the dir|
|00005350| 65 63 74 6f 72 69 65 73 | 20 61 62 6f 76 65 20 74 |ectories| above t|
|00005360| 68 65 20 63 75 72 72 65 | 6e 74 20 64 69 72 65 63 |he curre|nt direc|
|00005370| 74 6f 72 79 2e 20 54 68 | 69 73 20 6d 65 61 6e 73 |tory. Th|is means|
|00005380| 20 79 6f 75 20 63 61 6e | 20 6b 65 65 70 0a 58 61 | you can| keep.Xa|
|00005390| 20 67 6c 6f 62 61 6c 20 | 40 66 69 6c 65 7b 49 44 | global |@file{ID|
|000053a0| 7d 20 64 61 74 61 62 61 | 73 65 20 69 6e 20 74 68 |} databa|se in th|
|000053b0| 65 20 72 6f 6f 74 20 6f | 66 20 61 20 6c 61 72 67 |e root o|f a larg|
|000053c0| 65 20 73 6f 75 72 63 65 | 20 74 72 65 65 20 61 6e |e source| tree an|
|000053d0| 64 20 75 73 65 0a 58 74 | 68 65 20 71 75 65 72 79 |d use.Xt|he query|
|000053e0| 20 74 6f 6f 6c 73 20 66 | 72 6f 6d 20 61 6e 79 77 | tools f|rom anyw|
|000053f0| 68 65 72 65 20 77 69 74 | 68 69 6e 20 74 68 61 74 |here wit|hin that|
|00005400| 20 74 72 65 65 2e 0a 58 | 40 69 74 65 6d 20 2d 72 | tree..X|@item -r|
|00005410| 40 76 61 72 7b 3c 64 69 | 72 65 63 74 6f 72 79 3e |@var{<di|rectory>|
|00005420| 7d 0a 58 54 68 65 20 71 | 75 65 72 79 20 74 6f 6f |}.XThe q|uery too|
|00005430| 6c 73 20 75 73 75 61 6c | 6c 79 20 61 73 73 75 6d |ls usual|ly assum|
|00005440| 65 20 74 68 65 20 66 69 | 6c 65 20 6e 61 6d 65 73 |e the fi|le names|
|00005450| 20 69 6e 20 74 68 65 20 | 64 61 74 61 62 61 73 65 | in the |database|
|00005460| 20 61 72 65 20 72 65 6c | 61 74 69 76 65 0a 58 74 | are rel|ative.Xt|
|00005470| 6f 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 20 |o the di|rectory |
|00005480| 68 6f 6c 64 69 6e 67 20 | 74 68 65 20 64 61 74 61 |holding |the data|
|00005490| 62 61 73 65 2e 20 54 68 | 65 20 40 63 6f 64 65 7b |base. Th|e @code{|
|000054a0| 2d 72 7d 20 6f 70 74 69 | 6f 6e 20 74 65 6c 6c 73 |-r} opti|on tells|
|000054b0| 20 74 68 65 0a 58 74 6f | 6f 6c 73 20 74 6f 20 6c | the.Xto|ols to l|
|000054c0| 6f 6f 6b 20 66 6f 72 20 | 74 68 65 20 66 69 6c 65 |ook for |the file|
|000054d0| 73 20 72 65 6c 61 74 69 | 76 65 20 74 6f 20 40 76 |s relati|ve to @v|
|000054e0| 61 72 7b 3c 64 69 72 65 | 63 74 6f 72 79 3e 7d 20 |ar{<dire|ctory>} |
|000054f0| 72 65 67 61 72 64 6c 65 | 73 73 0a 58 6f 66 20 74 |regardle|ss.Xof t|
|00005500| 68 65 20 6c 6f 63 61 74 | 69 6f 6e 20 6f 66 20 74 |he locat|ion of t|
|00005510| 68 65 20 64 61 74 61 62 | 61 73 65 2e 0a 58 40 69 |he datab|ase..X@i|
|00005520| 74 65 6d 20 2d 63 0a 58 | 54 68 69 73 20 69 73 20 |tem -c.X|This is |
|00005530| 73 68 6f 72 74 68 61 6e | 64 20 66 6f 72 20 40 63 |shorthan|d for @c|
|00005540| 6f 64 65 7b 2d 72 60 70 | 77 64 60 7d 2e 20 49 74 |ode{-r`p|wd`}. It|
|00005550| 20 74 65 6c 6c 73 20 74 | 68 65 20 71 75 65 72 79 | tells t|he query|
|00005560| 20 74 6f 6f 6c 73 20 74 | 6f 20 61 73 73 75 6d 65 | tools t|o assume|
|00005570| 0a 58 74 68 65 20 66 69 | 6c 65 20 6e 61 6d 65 73 |.Xthe fi|le names|
|00005580| 20 61 72 65 20 73 74 6f | 72 65 64 20 72 65 6c 61 | are sto|red rela|
|00005590| 74 69 76 65 20 74 6f 20 | 74 68 65 20 63 75 72 72 |tive to |the curr|
|000055a0| 65 6e 74 20 77 6f 72 6b | 69 6e 67 20 64 69 72 65 |ent work|ing dire|
|000055b0| 63 74 6f 72 79 2e 0a 58 | 40 69 74 65 6d 20 2d 65 |ctory..X|@item -e|
|000055c0| 0a 58 46 6f 72 63 65 20 | 74 68 65 20 70 61 74 74 |.XForce |the patt|
|000055d0| 65 72 6e 20 61 72 67 75 | 6d 65 6e 74 73 20 74 6f |ern argu|ments to|
|000055e0| 20 62 65 20 74 72 65 61 | 74 65 64 20 61 73 20 72 | be trea|ted as r|
|000055f0| 65 67 75 6c 61 72 20 65 | 78 70 72 65 73 73 69 6f |egular e|xpressio|
|00005600| 6e 73 2e 0a 58 4e 6f 72 | 6d 61 6c 6c 79 20 74 68 |ns..XNor|mally th|
|00005610| 65 20 71 75 65 72 79 20 | 74 6f 6f 6c 73 20 61 74 |e query |tools at|
|00005620| 74 65 6d 70 74 20 74 6f | 20 67 75 65 73 73 20 69 |tempt to| guess i|
|00005630| 66 20 74 68 65 20 70 61 | 74 74 65 72 6e 73 20 61 |f the pa|tterns a|
|00005640| 72 65 20 72 65 67 75 6c | 61 72 0a 58 65 78 70 72 |re regul|ar.Xexpr|
|00005650| 65 73 73 69 6f 6e 73 20 | 6f 72 20 73 69 6d 70 6c |essions |or simpl|
|00005660| 65 20 69 64 65 6e 74 69 | 66 69 65 72 73 20 62 79 |e identi|fiers by|
|00005670| 20 6c 6f 6f 6b 69 6e 67 | 20 66 6f 72 20 73 70 65 | looking| for spe|
|00005680| 63 69 61 6c 20 63 68 61 | 72 61 63 74 65 72 73 0a |cial cha|racters.|
|00005690| 58 69 6e 20 74 68 65 20 | 70 61 74 74 65 72 6e 2e |Xin the |pattern.|
|000056a0| 0a 58 40 69 74 65 6d 20 | 2d 77 0a 58 46 6f 72 63 |.X@item |-w.XForc|
|000056b0| 65 20 74 68 65 20 70 61 | 74 74 65 72 6e 20 61 72 |e the pa|ttern ar|
|000056c0| 67 75 6d 65 6e 74 73 20 | 74 6f 20 62 65 20 74 72 |guments |to be tr|
|000056d0| 65 61 74 65 64 20 61 73 | 20 73 69 6d 70 6c 65 20 |eated as| simple |
|000056e0| 77 6f 72 64 73 20 65 76 | 65 6e 20 69 66 0a 58 74 |words ev|en if.Xt|
|000056f0| 68 65 79 20 63 6f 6e 74 | 61 69 6e 20 73 70 65 63 |hey cont|ain spec|
|00005700| 69 61 6c 20 72 65 67 75 | 6c 61 72 20 65 78 70 72 |ial regu|lar expr|
|00005710| 65 73 73 69 6f 6e 20 63 | 68 61 72 61 63 74 65 72 |ession c|haracter|
|00005720| 73 2e 0a 58 40 69 74 65 | 6d 20 2d 6b 0a 58 4e 6f |s..X@ite|m -k.XNo|
|00005730| 72 6d 61 6c 6c 79 20 74 | 68 65 20 71 75 65 72 79 |rmally t|he query|
|00005740| 20 74 6f 6f 6c 73 20 74 | 68 61 74 20 67 65 6e 65 | tools t|hat gene|
|00005750| 72 61 74 65 20 6c 69 73 | 74 73 20 6f 66 20 66 69 |rate lis|ts of fi|
|00005760| 6c 65 20 6e 61 6d 65 73 | 20 61 74 74 65 6d 70 74 |le names| attempt|
|00005770| 20 74 6f 0a 58 63 6f 6d | 70 72 65 73 73 20 74 68 | to.Xcom|press th|
|00005780| 65 20 6c 69 73 74 73 20 | 75 73 69 6e 67 20 74 68 |e lists |using th|
|00005790| 65 20 40 63 6f 64 65 7b | 63 73 68 7d 20 62 72 61 |e @code{|csh} bra|
|000057a0| 63 65 20 6e 6f 74 61 74 | 69 6f 6e 2e 20 54 68 69 |ce notat|ion. Thi|
|000057b0| 73 20 6f 70 74 69 6f 6e | 0a 58 73 75 70 70 72 65 |s option|.Xsuppre|
|000057c0| 73 73 65 73 20 74 68 65 | 20 66 69 6c 65 20 6e 61 |sses the| file na|
|000057d0| 6d 65 20 63 6f 6d 70 72 | 65 73 73 69 6f 6e 20 61 |me compr|ession a|
|000057e0| 6e 64 20 6f 75 74 70 75 | 74 73 20 65 61 63 68 20 |nd outpu|ts each |
|000057f0| 6e 61 6d 65 20 69 6e 20 | 66 75 6c 6c 2e 0a 58 28 |name in |full..X(|
|00005800| 54 68 69 73 20 69 73 20 | 70 61 72 74 69 63 75 6c |This is |particul|
|00005810| 61 72 6c 79 20 75 73 65 | 66 75 6c 20 69 66 20 79 |arly use|ful if y|
|00005820| 6f 75 20 61 72 65 20 61 | 20 40 63 6f 64 65 7b 6b |ou are a| @code{k|
|00005830| 73 68 7d 20 75 73 65 72 | 20 61 6e 64 20 77 61 6e |sh} user| and wan|
|00005840| 74 20 74 6f 0a 58 66 65 | 65 64 20 74 68 65 20 6c |t to.Xfe|ed the l|
|00005850| 69 73 74 20 6f 66 20 6e | 61 6d 65 73 20 74 6f 20 |ist of n|ames to |
|00005860| 61 6e 6f 74 68 65 72 20 | 63 6f 6d 6d 61 6e 64 20 |another |command |
|00005870| 2d 2d 2d 20 74 68 65 20 | 40 63 6f 64 65 7b 2d 6b |--- the |@code{-k|
|00005880| 7d 20 6f 70 74 69 6f 6e | 0a 58 63 6f 6d 65 73 20 |} option|.Xcomes |
|00005890| 66 72 6f 6d 20 74 68 65 | 20 40 63 6f 64 65 7b 6b |from the| @code{k|
|000058a0| 7d 20 69 6e 20 40 63 6f | 64 65 7b 6b 73 68 7d 29 |} in @co|de{ksh})|
|000058b0| 2e 0a 58 40 69 74 65 6d | 20 2d 67 0a 58 49 74 20 |..X@item| -g.XIt |
|000058c0| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 62 |is possi|ble to b|
|000058d0| 75 69 6c 64 20 74 68 65 | 20 71 75 65 72 79 20 74 |uild the| query t|
|000058e0| 6f 6f 6c 73 20 73 6f 20 | 74 68 65 20 40 63 6f 64 |ools so |the @cod|
|000058f0| 65 7b 2d 6b 7d 20 6f 70 | 74 69 6f 6e 20 69 73 20 |e{-k} op|tion is |
|00005900| 74 68 65 0a 58 64 65 66 | 61 75 6c 74 20 62 65 68 |the.Xdef|ault beh|
|00005910| 61 76 69 6f 72 2e 20 49 | 66 20 74 68 69 73 20 69 |avior. I|f this i|
|00005920| 73 20 74 68 65 20 63 61 | 73 65 20 66 6f 72 20 79 |s the ca|se for y|
|00005930| 6f 75 72 20 73 79 73 74 | 65 6d 2c 20 74 68 65 20 |our syst|em, the |
|00005940| 40 63 6f 64 65 7b 2d 67 | 7d 0a 58 6f 70 74 69 6f |@code{-g|}.Xoptio|
|00005950| 6e 20 74 75 72 6e 73 20 | 6f 6e 20 74 68 65 20 67 |n turns |on the g|
|00005960| 6c 6f 62 62 69 6e 67 20 | 6f 66 20 66 69 6c 65 20 |lobbing |of file |
|00005970| 6e 61 6d 65 73 20 75 73 | 69 6e 67 20 74 68 65 20 |names us|ing the |
|00005980| 40 63 6f 64 65 7b 63 73 | 68 7d 20 62 72 61 63 65 |@code{cs|h} brace|
|00005990| 0a 58 6e 6f 74 61 74 69 | 6f 6e 2e 0a 58 40 69 74 |.Xnotati|on..X@it|
|000059a0| 65 6d 20 2d 6e 0a 58 4e | 6f 72 6d 61 6c 6c 79 20 |em -n.XN|ormally |
|000059b0| 74 68 65 20 71 75 65 72 | 79 20 74 6f 6f 6c 73 20 |the quer|y tools |
|000059c0| 74 68 61 74 20 67 65 6e | 65 72 61 74 65 20 6c 69 |that gen|erate li|
|000059d0| 73 74 73 20 6f 66 20 66 | 69 6c 65 20 6e 61 6d 65 |sts of f|ile name|
|000059e0| 73 20 61 6c 73 6f 20 6c | 69 73 74 0a 58 74 68 65 |s also l|ist.Xthe|
|000059f0| 20 6d 61 74 63 68 69 6e | 67 20 69 64 65 6e 74 69 | matchin|g identi|
|00005a00| 66 69 65 72 20 61 74 20 | 74 68 65 20 68 65 61 64 |fier at |the head|
|00005a10| 20 6f 66 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 | of the |list of |
|00005a20| 6e 61 6d 65 73 2e 20 54 | 68 69 73 20 69 73 0a 58 |names. T|his is.X|
|00005a30| 69 72 72 69 74 61 74 69 | 6e 67 20 69 66 20 79 6f |irritati|ng if yo|
|00005a40| 75 20 77 61 6e 74 20 6a | 75 73 74 20 61 20 6c 69 |u want j|ust a li|
|00005a50| 73 74 20 6f 66 20 6e 61 | 6d 65 73 20 74 6f 20 66 |st of na|mes to f|
|00005a60| 65 65 64 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 63 |eed to a|nother c|
|00005a70| 6f 6d 6d 61 6e 64 2c 0a | 58 73 6f 20 74 68 65 20 |ommand,.|Xso the |
|00005a80| 40 63 6f 64 65 7b 2d 6e | 7d 20 6f 70 74 69 6f 6e |@code{-n|} option|
|00005a90| 20 73 75 70 70 72 65 73 | 73 65 73 20 74 68 65 20 | suppres|ses the |
|00005aa0| 69 64 65 6e 74 69 66 69 | 65 72 20 61 6e 64 20 6c |identifi|er and l|
|00005ab0| 69 73 74 73 20 6f 6e 6c | 79 0a 58 66 69 6c 65 20 |ists onl|y.Xfile |
|00005ac0| 6e 61 6d 65 73 2e 0a 58 | 40 69 74 65 6d 20 2d 62 |names..X|@item -b|
|00005ad0| 0a 58 54 68 69 73 20 6f | 70 74 69 6f 6e 20 69 73 |.XThis o|ption is|
|00005ae0| 20 6f 6e 6c 79 20 75 73 | 65 64 20 62 79 20 74 68 | only us|ed by th|
|00005af0| 65 20 40 63 6f 64 65 7b | 70 69 64 7d 20 74 6f 6f |e @code{|pid} too|
|00005b00| 6c 2e 20 49 74 20 72 65 | 73 74 72 69 63 74 73 20 |l. It re|stricts |
|00005b10| 40 63 6f 64 65 7b 70 69 | 64 7d 0a 58 74 6f 20 70 |@code{pi|d}.Xto p|
|00005b20| 61 74 74 65 72 6e 20 6d | 61 74 63 68 20 6f 6e 6c |attern m|atch onl|
|00005b30| 79 20 74 68 65 20 62 61 | 73 65 6e 61 6d 65 20 70 |y the ba|sename p|
|00005b40| 61 72 74 20 6f 66 20 61 | 20 66 69 6c 65 20 6e 61 |art of a| file na|
|00005b50| 6d 65 2e 20 4e 6f 72 6d | 61 6c 6c 79 20 74 68 65 |me. Norm|ally the|
|00005b60| 0a 58 61 62 73 6f 6c 75 | 74 65 20 66 69 6c 65 20 |.Xabsolu|te file |
|00005b70| 6e 61 6d 65 20 69 73 20 | 6d 61 74 63 68 65 64 20 |name is |matched |
|00005b80| 61 67 61 69 6e 73 74 20 | 74 68 65 20 70 61 74 74 |against |the patt|
|00005b90| 65 72 6e 2e 0a 58 40 69 | 74 65 6d 20 2d 64 20 2d |ern..X@i|tem -d -|
|00005ba0| 6f 20 2d 78 20 2d 61 0a | 58 54 68 65 73 65 20 6f |o -x -a.|XThese o|
|00005bb0| 70 74 69 6f 6e 73 20 6d | 61 79 20 62 65 20 75 73 |ptions m|ay be us|
|00005bc0| 65 64 20 69 6e 20 61 6e | 79 20 63 6f 6d 62 69 6e |ed in an|y combin|
|00005bd0| 61 74 69 6f 6e 20 74 6f | 20 6c 69 6d 69 74 20 74 |ation to| limit t|
|00005be0| 68 65 20 72 61 64 69 78 | 20 6f 66 0a 58 6e 75 6d |he radix| of.Xnum|
|00005bf0| 65 72 69 63 20 6d 61 74 | 63 68 65 73 2e 20 54 68 |eric mat|ches. Th|
|00005c00| 65 20 40 63 6f 64 65 7b | 2d 64 7d 20 6f 70 74 69 |e @code{|-d} opti|
|00005c10| 6f 6e 20 77 69 6c 6c 20 | 61 6c 6c 6f 77 20 6d 61 |on will |allow ma|
|00005c20| 74 63 68 65 73 20 6f 6e | 20 64 65 63 69 6d 61 6c |tches on| decimal|
|00005c30| 0a 58 6e 75 6d 62 65 72 | 73 2c 20 40 63 6f 64 65 |.Xnumber|s, @code|
|00005c40| 7b 2d 6f 7d 20 6f 6e 20 | 6f 63 74 61 6c 2c 20 61 |{-o} on |octal, a|
|00005c50| 6e 64 20 40 63 6f 64 65 | 7b 2d 78 7d 20 6f 6e 20 |nd @code|{-x} on |
|00005c60| 68 65 78 61 64 65 63 69 | 6d 61 6c 20 6e 75 6d 62 |hexadeci|mal numb|
|00005c70| 65 72 73 2e 0a 58 54 68 | 65 20 40 63 6f 64 65 7b |ers..XTh|e @code{|
|00005c80| 2d 61 7d 20 6f 70 74 69 | 6f 6e 20 69 73 20 73 68 |-a} opti|on is sh|
|00005c90| 6f 72 74 68 61 6e 64 20 | 66 6f 72 20 73 70 65 63 |orthand |for spec|
|00005ca0| 69 66 79 69 6e 67 20 61 | 6c 6c 20 74 68 72 65 65 |ifying a|ll three|
|00005cb0| 2e 20 41 6e 79 0a 58 63 | 6f 6d 62 69 6e 61 74 69 |. Any.Xc|ombinati|
|00005cc0| 6f 6e 20 6f 66 20 74 68 | 65 73 65 20 6f 70 74 69 |on of th|ese opti|
|00005cd0| 6f 6e 73 20 6d 61 79 20 | 62 65 20 75 73 65 64 2e |ons may |be used.|
|00005ce0| 0a 58 40 69 74 65 6d 20 | 2d 6d 0a 58 4d 65 72 67 |.X@item |-m.XMerg|
|00005cf0| 65 20 6d 75 6c 74 69 70 | 6c 65 20 6c 69 6e 65 73 |e multip|le lines|
|00005d00| 20 6f 66 20 6f 75 74 70 | 75 74 20 69 6e 74 6f 20 | of outp|ut into |
|00005d10| 61 20 73 69 6e 67 6c 65 | 20 6c 69 6e 65 2e 20 28 |a single| line. (|
|00005d20| 49 66 20 79 6f 75 72 20 | 71 75 65 72 79 0a 58 6d |If your |query.Xm|
|00005d30| 61 74 63 68 65 73 20 6d | 6f 72 65 20 74 68 61 6e |atches m|ore than|
|00005d40| 20 6f 6e 65 20 69 64 65 | 6e 74 69 66 69 65 72 20 | one ide|ntifier |
|00005d50| 74 68 65 20 64 65 66 61 | 75 6c 74 20 61 63 74 69 |the defa|ult acti|
|00005d60| 6f 6e 20 69 73 20 74 6f | 20 67 65 6e 65 72 61 74 |on is to| generat|
|00005d70| 65 0a 58 61 20 73 65 70 | 61 72 61 74 65 20 6c 69 |e.Xa sep|arate li|
|00005d80| 6e 65 20 6f 66 20 6f 75 | 74 70 75 74 20 66 6f 72 |ne of ou|tput for|
|00005d90| 20 65 61 63 68 20 6d 61 | 74 63 68 69 6e 67 20 69 | each ma|tching i|
|00005da0| 64 65 6e 74 69 66 69 65 | 72 29 2e 0a 58 40 69 74 |dentifie|r)..X@it|
|00005db0| 65 6d 20 2d 73 0a 58 53 | 65 61 72 63 68 20 66 6f |em -s.XS|earch fo|
|00005dc0| 72 20 69 64 65 6e 74 69 | 66 69 65 72 73 20 74 68 |r identi|fiers th|
|00005dd0| 61 74 20 61 70 70 65 61 | 72 20 6f 6e 6c 79 20 6f |at appea|r only o|
|00005de0| 6e 63 65 20 69 6e 20 74 | 68 65 20 64 61 74 61 62 |nce in t|he datab|
|00005df0| 61 73 65 2e 20 54 68 69 | 73 0a 58 68 65 6c 70 73 |ase. Thi|s.Xhelps|
|00005e00| 20 74 6f 20 6c 6f 63 61 | 74 65 20 69 64 65 6e 74 | to loca|te ident|
|00005e10| 69 66 69 65 72 73 20 74 | 68 61 74 20 61 72 65 20 |ifiers t|hat are |
|00005e20| 64 65 66 69 6e 65 64 20 | 62 75 74 20 6e 65 76 65 |defined |but neve|
|00005e30| 72 20 75 73 65 64 2e 0a | 58 40 69 74 65 6d 20 2d |r used..|X@item -|
|00005e40| 75 40 76 61 72 7b 3c 6e | 75 6d 62 65 72 3e 7d 0a |u@var{<n|umber>}.|
|00005e50| 58 4c 69 73 74 20 69 64 | 65 6e 74 69 66 69 65 72 |XList id|entifier|
|00005e60| 73 20 74 68 61 74 20 63 | 6f 6e 66 6c 69 63 74 20 |s that c|onflict |
|00005e70| 69 6e 20 74 68 65 20 66 | 69 72 73 74 20 40 76 61 |in the f|irst @va|
|00005e80| 72 7b 3c 6e 75 6d 62 65 | 72 3e 7d 20 63 68 61 72 |r{<numbe|r>} char|
|00005e90| 61 63 74 65 72 73 2e 0a | 58 54 68 69 73 20 63 6f |acters..|XThis co|
|00005ea0| 75 6c 64 20 62 65 20 75 | 73 65 66 75 6c 20 70 6f |uld be u|seful po|
|00005eb0| 72 74 69 6e 67 20 70 72 | 6f 67 72 61 6d 73 20 74 |rting pr|ograms t|
|00005ec0| 6f 20 62 72 61 69 6e 2d | 64 65 61 64 20 63 6f 6d |o brain-|dead com|
|00005ed0| 70 75 74 65 72 73 20 74 | 68 61 74 0a 58 72 65 66 |puters t|hat.Xref|
|00005ee0| 75 73 65 20 74 6f 20 73 | 75 70 70 6f 72 74 20 6c |use to s|upport l|
|00005ef0| 6f 6e 67 20 69 64 65 6e | 74 69 66 69 65 72 73 2c |ong iden|tifiers,|
|00005f00| 20 62 75 74 20 79 6f 75 | 72 20 62 65 73 74 20 6c | but you|r best l|
|00005f10| 6f 6e 67 20 74 65 72 6d | 20 6f 70 74 69 6f 6e 0a |ong term| option.|
|00005f20| 58 69 73 20 74 6f 20 73 | 65 74 20 73 75 63 68 20 |Xis to s|et such |
|00005f30| 63 6f 6d 70 75 74 65 72 | 73 20 6f 6e 20 66 69 72 |computer|s on fir|
|00005f40| 65 2e 0a 58 40 65 6e 64 | 20 74 61 62 6c 65 0a 58 |e..X@end| table.X|
|00005f50| 0a 58 40 6e 6f 64 65 20 | 50 61 74 74 65 72 6e 73 |.X@node |Patterns|
|00005f60| 2c 20 4c 69 64 2c 20 43 | 6f 6d 6d 6f 6e 20 4f 70 |, Lid, C|ommon Op|
|00005f70| 74 69 6f 6e 73 2c 20 44 | 61 74 61 62 61 73 65 20 |tions, D|atabase |
|00005f80| 51 75 65 72 79 20 54 6f | 6f 6c 73 0a 58 40 73 65 |Query To|ols.X@se|
|00005f90| 63 74 69 6f 6e 20 50 61 | 74 74 65 72 6e 73 0a 58 |ction Pa|tterns.X|
|00005fa0| 0a 58 59 6f 75 20 63 61 | 6e 20 61 74 74 65 6d 70 |.XYou ca|n attemp|
|00005fb0| 74 20 74 6f 20 6d 61 74 | 63 68 20 65 69 74 68 65 |t to mat|ch eithe|
|00005fc0| 72 20 73 69 6d 70 6c 65 | 20 69 64 65 6e 74 69 66 |r simple| identif|
|00005fd0| 69 65 72 73 20 6f 72 20 | 6e 75 6d 62 65 72 73 20 |iers or |numbers |
|00005fe0| 69 6e 20 61 0a 58 71 75 | 65 72 79 2c 20 6f 72 20 |in a.Xqu|ery, or |
|00005ff0| 79 6f 75 20 63 61 6e 20 | 73 70 65 63 69 66 79 20 |you can |specify |
|00006000| 61 20 72 65 67 75 6c 61 | 72 20 65 78 70 72 65 73 |a regula|r expres|
|00006010| 73 69 6f 6e 20 70 61 74 | 74 65 72 6e 20 77 68 69 |sion pat|tern whi|
|00006020| 63 68 20 6d 61 79 0a 58 | 6d 61 74 63 68 20 6d 61 |ch may.X|match ma|
|00006030| 6e 79 20 64 69 66 66 65 | 72 65 6e 74 20 69 64 65 |ny diffe|rent ide|
|00006040| 6e 74 69 66 69 65 72 73 | 20 69 6e 20 74 68 65 20 |ntifiers| in the |
|00006050| 64 61 74 61 62 61 73 65 | 2e 20 54 68 65 20 71 75 |database|. The qu|
|00006060| 65 72 79 0a 58 70 72 6f | 67 72 61 6d 73 20 75 73 |ery.Xpro|grams us|
|00006070| 65 20 65 69 74 68 65 72 | 20 40 76 61 72 7b 72 65 |e either| @var{re|
|00006080| 67 65 78 7d 20 61 6e 64 | 20 40 76 61 72 7b 72 65 |gex} and| @var{re|
|00006090| 67 63 6d 70 7d 20 6f 72 | 20 40 76 61 72 7b 72 65 |gcmp} or| @var{re|
|000060a0| 5f 63 6f 6d 70 7d 0a 58 | 61 6e 64 20 40 76 61 72 |_comp}.X|and @var|
|000060b0| 7b 72 65 5f 65 78 65 63 | 7d 2c 20 64 65 70 65 6e |{re_exec|}, depen|
|000060c0| 64 69 6e 67 20 6f 6e 20 | 77 68 69 63 68 20 6f 6e |ding on |which on|
|000060d0| 65 20 69 73 20 61 76 61 | 69 6c 61 62 6c 65 20 69 |e is ava|ilable i|
|000060e0| 6e 20 74 68 65 20 6c 69 | 62 72 61 72 79 0a 58 6f |n the li|brary.Xo|
|000060f0| 6e 20 79 6f 75 72 20 73 | 79 73 74 65 6d 2e 20 54 |n your s|ystem. T|
|00006100| 68 65 73 65 20 6d 69 67 | 68 74 20 6e 6f 74 20 61 |hese mig|ht not a|
|00006110| 6c 77 61 79 73 20 73 75 | 70 70 6f 72 74 20 74 68 |lways su|pport th|
|00006120| 65 20 65 78 61 63 74 20 | 73 61 6d 65 0a 58 72 65 |e exact |same.Xre|
|00006130| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|00006140| 20 73 79 6e 74 61 78 2c | 20 73 6f 20 63 6f 6e 73 | syntax,| so cons|
|00006150| 75 6c 74 20 79 6f 75 72 | 20 6c 6f 63 61 6c 20 40 |ult your| local @|
|00006160| 76 61 72 7b 6d 61 6e 7d | 20 70 61 67 65 73 0a 58 |var{man}| pages.X|
|00006170| 74 6f 20 66 69 6e 64 20 | 6f 75 74 2e 20 41 6e 79 |to find |out. Any|
|00006180| 20 72 65 67 75 6c 61 72 | 20 65 78 70 72 65 73 73 | regular| express|
|00006190| 69 6f 6e 20 72 6f 75 74 | 69 6e 65 73 20 73 68 6f |ion rout|ines sho|
|000061a0| 75 6c 64 20 73 75 70 70 | 6f 72 74 20 74 68 65 20 |uld supp|ort the |
|000061b0| 66 6f 6c 6c 6f 77 69 6e | 67 0a 58 73 79 6e 74 61 |followin|g.Xsynta|
|000061c0| 78 3a 0a 58 0a 58 40 74 | 61 62 6c 65 20 40 63 6f |x:.X.X@t|able @co|
|000061d0| 64 65 0a 58 40 69 74 65 | 6d 20 2e 0a 58 41 20 64 |de.X@ite|m ..XA d|
|000061e0| 6f 74 20 6d 61 74 63 68 | 65 73 20 61 6e 79 20 63 |ot match|es any c|
|000061f0| 68 61 72 61 63 74 65 72 | 2e 0a 58 40 69 74 65 6d |haracter|..X@item|
|00006200| 20 5b 20 5d 0a 58 42 72 | 61 63 6b 65 74 73 20 6d | [ ].XBr|ackets m|
|00006210| 61 74 63 68 20 61 6e 79 | 20 6f 66 20 74 68 65 20 |atch any| of the |
|00006220| 63 68 61 72 61 63 74 65 | 72 73 20 73 70 65 63 69 |characte|rs speci|
|00006230| 66 69 65 64 20 77 69 74 | 68 69 6e 20 74 68 65 20 |fied wit|hin the |
|00006240| 62 72 61 63 6b 65 74 73 | 2e 20 20 59 6f 75 0a 58 |brackets|. You.X|
|00006250| 63 61 6e 20 6d 61 74 63 | 68 20 61 6e 79 20 63 68 |can matc|h any ch|
|00006260| 61 72 61 63 74 65 72 73 | 20 40 65 6d 70 68 7b 65 |aracters| @emph{e|
|00006270| 78 63 65 70 74 7d 20 74 | 68 65 20 6f 6e 65 73 20 |xcept} t|he ones |
|00006280| 69 6e 20 62 72 61 63 6b | 65 74 73 20 62 79 20 74 |in brack|ets by t|
|00006290| 79 70 69 6e 67 0a 58 40 | 63 6f 64 65 7b 5e 7d 20 |yping.X@|code{^} |
|000062a0| 61 73 20 74 68 65 20 66 | 69 72 73 74 20 63 68 61 |as the f|irst cha|
|000062b0| 72 61 63 74 65 72 2e 20 | 41 20 72 61 6e 67 65 20 |racter. |A range |
|000062c0| 6f 66 20 63 68 61 72 61 | 63 74 65 72 73 20 63 61 |of chara|cters ca|
|000062d0| 6e 20 62 65 20 73 70 65 | 63 69 66 69 65 64 0a 58 |n be spe|cified.X|
|000062e0| 75 73 69 6e 67 20 40 63 | 6f 64 65 7b 2d 7d 2e 0a |using @c|ode{-}..|
|000062f0| 58 40 69 74 65 6d 20 2a | 0a 58 41 6e 20 61 73 74 |X@item *|.XAn ast|
|00006300| 65 72 69 73 6b 20 6d 65 | 61 6e 73 20 72 65 70 65 |erisk me|ans repe|
|00006310| 61 74 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |at the p|revious |
|00006320| 70 61 74 74 65 72 6e 20 | 7a 65 72 6f 20 6f 72 20 |pattern |zero or |
|00006330| 6d 6f 72 65 20 74 69 6d | 65 73 2e 0a 58 40 69 74 |more tim|es..X@it|
|00006340| 65 6d 20 5e 0a 58 41 6e | 20 40 63 6f 64 65 7b 5e |em ^.XAn| @code{^|
|00006350| 7d 20 61 74 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |} at the| beginni|
|00006360| 6e 67 20 6f 66 20 61 20 | 70 61 74 74 65 72 6e 20 |ng of a |pattern |
|00006370| 6d 65 61 6e 73 20 74 68 | 65 20 70 61 74 74 65 72 |means th|e patter|
|00006380| 6e 20 6d 75 73 74 20 6d | 61 74 63 68 0a 58 73 74 |n must m|atch.Xst|
|00006390| 61 72 74 69 6e 67 20 61 | 74 20 74 68 65 20 66 69 |arting a|t the fi|
|000063a0| 72 73 74 20 63 68 61 72 | 61 63 74 65 72 20 6f 66 |rst char|acter of|
|000063b0| 20 74 68 65 20 69 64 65 | 6e 74 69 66 69 65 72 2e | the ide|ntifier.|
|000063c0| 0a 58 40 69 74 65 6d 20 | 24 0a 58 41 20 40 63 6f |.X@item |$.XA @co|
|000063d0| 64 65 7b 24 7d 20 61 74 | 20 74 68 65 20 65 6e 64 |de{$} at| the end|
|000063e0| 20 6f 66 20 74 68 65 20 | 70 61 74 74 65 72 6e 20 | of the |pattern |
|000063f0| 6d 65 61 6e 73 20 74 68 | 65 20 70 61 74 74 65 72 |means th|e patter|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.