home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / unix_c / utils / lit.tar < prev    next >
Tape Archive  |  1989-03-04  |  16.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: lit.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file lit/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4404102451 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6c 69 74 2f 00 00 00 00 | 00 00 00 00 00 00 00 00 |lit/....|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 34 31 30 32 | 0 | 4404102|
|00000090| 34 35 31 20 20 20 34 35 | 37 36 00 20 00 00 00 00 |451 45|76. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6c 69 74 2f 53 68 61 72 | 46 69 6c 65 2e 48 65 61 |lit/Shar|File.Hea|
|00000210| 64 65 72 73 00 00 00 00 | 00 00 00 00 00 00 00 00 |ders....|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 32 34 36 33 20 | 20 34 34 30 34 31 30 32 | 2463 | 4404102|
|00000290| 34 35 32 20 20 20 37 36 | 36 33 00 20 00 00 00 00 |452 76|63. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 6c 69 74 2e | 73 68 61 72 20 3d 3d 3d |=== lit.|shar ===|
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000420| 3d 3d 3d 3d 3d 3d 0a 46 | 72 6f 6d 20 70 75 72 2d |======.F|rom pur-|
|00000430| 65 65 21 6a 2e 63 63 2e | 70 75 72 64 75 65 2e 65 |ee!j.cc.|purdue.e|
|00000440| 64 75 21 69 2e 63 63 2e | 70 75 72 64 75 65 2e 65 |du!i.cc.|purdue.e|
|00000450| 64 75 21 70 75 72 64 75 | 65 21 67 61 74 65 63 68 |du!purdu|e!gatech|
|00000460| 21 62 62 6e 21 62 62 6e | 2e 63 6f 6d 21 72 73 61 |!bbn!bbn|.com!rsa|
|00000470| 6c 7a 20 57 65 64 20 46 | 65 62 20 31 30 20 30 38 |lz Wed F|eb 10 08|
|00000480| 3a 33 32 3a 30 31 20 45 | 53 54 20 31 39 38 38 0a |:32:01 E|ST 1988.|
|00000490| 0a 53 75 62 6d 69 74 74 | 65 64 2d 62 79 3a 20 22 |.Submitt|ed-by: "|
|000004a0| 52 69 63 68 61 72 64 20 | 41 2e 20 4f 27 4b 65 65 |Richard |A. O'Kee|
|000004b0| 66 65 22 20 3c 71 75 69 | 6e 74 75 73 21 6f 6b 40 |fe" <qui|ntus!ok@|
|000004c0| 53 55 4e 2e 43 4f 4d 3e | 0a 50 6f 73 74 69 6e 67 |SUN.COM>|.Posting|
|000004d0| 2d 6e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-number:| Volume |
|000004e0| 31 33 2c 20 49 73 73 75 | 65 20 33 32 0a 41 72 63 |13, Issu|e 32.Arc|
|000004f0| 68 69 76 65 2d 6e 61 6d | 65 3a 20 6c 69 74 0a 0a |hive-nam|e: lit..|
|00000500| 5b 20 20 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |[ This |program |
|00000510| 69 73 20 6c 69 6b 65 20 | 65 63 68 6f 2c 20 65 78 |is like |echo, ex|
|00000520| 63 65 70 74 20 74 68 61 | 74 20 69 74 20 75 6e 64 |cept tha|t it und|
|00000530| 65 72 73 74 61 6e 64 73 | 20 43 2d 73 74 79 6c 65 |erstands| C-style|
|00000540| 20 5c 0a 20 20 20 65 73 | 63 61 70 65 73 2c 20 72 | \. es|capes, r|
|00000550| 65 61 73 6f 6e 61 62 6c | 79 20 77 72 69 74 65 73 |easonabl|y writes|
|00000560| 20 66 69 65 6c 64 2d 74 | 79 70 65 20 64 61 74 61 | field-t|ype data|
|00000570| 2c 20 61 6e 64 20 61 20 | 63 6f 75 70 6c 65 20 6f |, and a |couple o|
|00000580| 66 0a 20 20 20 6f 74 68 | 65 72 20 74 68 69 6e 67 |f. oth|er thing|
|00000590| 73 2e 20 20 49 20 73 70 | 6c 69 63 65 64 20 61 20 |s. I sp|liced a |
|000005a0| 4d 61 6b 65 66 69 6c 65 | 20 69 6e 74 6f 20 74 68 |Makefile| into th|
|000005b0| 65 20 73 68 61 72 2e 20 | 20 2d 2d 72 24 20 20 5d |e shar. | --r$ ]|
|000005c0| 0a 0a 54 68 65 72 65 20 | 61 72 65 20 70 72 6f 62 |..There |are prob|
|000005d0| 6c 65 6d 73 20 77 69 74 | 68 20 74 68 65 20 62 75 |lems wit|h the bu|
|000005e0| 69 6c 74 2d 69 6e 20 65 | 63 68 6f 28 31 29 20 63 |ilt-in e|cho(1) c|
|000005f0| 6f 6d 6d 61 6e 64 3a 0a | 34 2e 32 42 53 44 3a 09 |ommand:.|4.2BSD:.|
|00000600| 09 49 66 20 74 68 65 20 | 66 69 72 73 74 20 61 72 |.If the |first ar|
|00000610| 67 75 6d 65 6e 74 20 68 | 61 70 70 65 6e 73 20 74 |gument h|appens t|
|00000620| 6f 20 62 65 20 2d 6e 2c | 20 74 6f 75 67 68 20 6c |o be -n,| tough l|
|00000630| 75 63 6b 2e 0a 53 79 73 | 74 65 6d 20 56 3a 09 59 |uck..Sys|tem V:.Y|
|00000640| 6f 75 20 63 61 6e 27 74 | 20 73 77 69 74 63 68 20 |ou can't| switch |
|00000650| 6f 66 66 20 63 68 61 72 | 61 63 74 65 72 20 65 73 |off char|acter es|
|00000660| 63 61 70 65 73 2e 0a 4d | 69 78 65 64 20 28 53 55 |capes..M|ixed (SU|
|00000670| 4e 29 3a 09 54 68 65 72 | 65 20 61 72 65 20 74 77 |N):.Ther|e are tw|
|00000680| 6f 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 65 63 |o versio|ns of ec|
|00000690| 68 6f 20 61 72 6f 75 6e | 64 2c 20 61 6e 64 20 61 |ho aroun|d, and a|
|000006a0| 0a 09 09 73 63 72 69 70 | 74 20 6d 61 79 20 67 65 |...scrip|t may ge|
|000006b0| 74 20 65 69 74 68 65 72 | 20 64 65 70 65 6e 64 69 |t either| dependi|
|000006c0| 6e 67 20 6f 6e 20 74 68 | 65 20 70 72 65 66 65 72 |ng on th|e prefer|
|000006d0| 65 6e 63 65 0a 09 09 6f | 66 20 77 68 6f 20 63 61 |ence...o|f who ca|
|000006e0| 6c 6c 73 20 69 74 2e 0a | 54 68 65 20 64 65 73 69 |lls it..|The desi|
|000006f0| 67 6e 65 72 73 20 6f 66 | 20 65 63 68 6f 28 31 29 |gners of| echo(1)|
|00000700| 20 65 76 69 64 65 6e 74 | 6c 79 20 74 68 6f 75 67 | evident|ly thoug|
|00000710| 68 74 20 74 68 61 74 20 | 69 74 20 77 61 73 20 6f |ht that |it was o|
|00000720| 6e 6c 79 20 75 73 65 66 | 75 6c 0a 66 6f 72 20 77 |nly usef|ul.for w|
|00000730| 72 69 74 69 6e 67 20 6d | 65 73 73 61 67 65 73 2e |riting m|essages.|
|00000740| 20 20 48 6f 77 65 76 65 | 72 2c 20 74 6f 20 67 65 | Howeve|r, to ge|
|00000750| 74 20 66 69 6c 65 6e 61 | 6d 65 20 67 65 6e 65 72 |t filena|me gener|
|00000760| 61 74 69 6f 6e 20 69 6e | 20 74 68 65 0a 76 61 6c |ation in| the.val|
|00000770| 75 65 20 61 73 73 69 67 | 6e 65 64 20 74 6f 20 61 |ue assig|ned to a|
|00000780| 20 42 6f 75 72 6e 65 20 | 73 68 65 6c 6c 20 76 61 | Bourne |shell va|
|00000790| 72 69 61 62 6c 65 2c 20 | 69 74 20 69 73 20 6e 65 |riable, |it is ne|
|000007a0| 63 65 73 73 61 72 79 20 | 74 6f 20 77 72 69 74 65 |cessary |to write|
|000007b0| 0a 09 76 61 72 69 61 62 | 6c 65 3d 60 65 63 68 6f |..variab|le=`echo|
|000007c0| 20 3f 70 61 74 74 65 72 | 6e 2a 60 0a 77 68 69 63 | ?patter|n*`.whic|
|000007d0| 68 20 64 6f 65 73 6e 27 | 74 20 71 75 69 74 65 20 |h doesn'|t quite |
|000007e0| 77 6f 72 6b 2e 20 20 6c | 69 74 28 31 29 20 70 72 |work. l|it(1) pr|
|000007f0| 6f 76 69 64 65 73 20 65 | 76 65 72 79 74 68 69 6e |ovides e|verythin|
|00000800| 67 20 74 68 61 74 20 74 | 68 65 0a 34 2e 32 42 53 |g that t|he.4.2BS|
|00000810| 44 20 6f 72 20 53 79 73 | 74 65 6d 20 56 20 65 63 |D or Sys|tem V ec|
|00000820| 68 6f 28 31 29 20 63 6f | 6d 6d 61 6e 64 73 20 70 |ho(1) co|mmands p|
|00000830| 72 6f 76 69 64 65 73 2c | 20 61 6e 64 20 61 20 6c |rovides,| and a l|
|00000840| 69 74 74 6c 65 20 62 69 | 74 20 6d 6f 72 65 2e 0a |ittle bi|t more..|
|00000850| 49 6e 20 70 61 72 74 69 | 63 75 6c 61 72 2c 0a 09 |In parti|cular,..|
|00000860| 76 61 72 69 61 62 6c 65 | 3d 60 6c 69 74 20 2d 2d |variable|=`lit --|
|00000870| 20 3f 70 61 74 74 65 72 | 6e 2a 60 0a 77 6f 72 6b | ?patter|n*`.work|
|00000880| 73 20 63 6f 72 72 65 63 | 74 6c 79 2c 20 65 76 65 |s correc|tly, eve|
|00000890| 6e 20 69 66 20 74 68 65 | 20 66 69 6c 65 20 6e 61 |n if the| file na|
|000008a0| 6d 65 73 20 6d 61 74 63 | 68 65 64 20 73 74 61 72 |mes matc|hed star|
|000008b0| 74 20 77 69 74 68 20 2d | 20 6f 72 0a 63 6f 6e 74 |t with -| or.cont|
|000008c0| 61 69 6e 20 5c 20 2e 0a | 0a 54 68 65 20 66 6f 6c |ain \ ..|.The fol|
|000008d0| 6c 6f 77 69 6e 67 20 73 | 68 65 6c 6c 20 61 72 63 |lowing s|hell arc|
|000008e0| 68 69 76 65 20 63 6f 6e | 74 61 69 6e 73 20 6c 69 |hive con|tains li|
|000008f0| 74 2e 31 20 61 6e 64 20 | 6c 69 74 2e 63 20 2e 0a |t.1 and |lit.c ..|
|00000900| 0a 4a 75 73 74 20 63 6f | 6d 70 69 6c 65 20 6c 69 |.Just co|mpile li|
|00000910| 74 2e 63 2c 20 74 68 65 | 72 65 20 61 72 65 20 6e |t.c, the|re are n|
|00000920| 6f 20 6f 70 74 69 6f 6e | 73 20 74 6f 20 73 65 74 |o option|s to set|
|00000930| 2e 0a 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 6c 69 74 2f 4d 61 6b 65 | 66 69 6c 65 00 00 00 00 |lit/Make|file....|
|00000a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000a70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000a80| 20 20 20 20 31 36 35 20 | 20 34 34 30 34 31 30 32 | 165 | 4404102|
|00000a90| 34 34 36 20 20 20 36 33 | 31 31 00 20 00 00 00 00 |446 63|11. ....|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 61 6c 6c 3a 09 09 6c 69 | 74 20 6c 69 74 2e 31 0a |all:..li|t lit.1.|
|00000c10| 69 6e 73 74 61 6c 6c 3a | 09 61 6c 6c 0a 09 40 65 |install:|.all..@e|
|00000c20| 63 68 6f 20 69 6e 73 74 | 61 6c 6c 20 61 63 63 6f |cho inst|all acco|
|00000c30| 72 64 69 6e 67 20 74 6f | 20 6c 6f 63 61 6c 20 63 |rding to| local c|
|00000c40| 6f 6e 76 65 6e 74 69 6f | 6e 73 0a 6c 69 74 3a 09 |onventio|ns.lit:.|
|00000c50| 09 6c 69 74 2e 63 0a 09 | 24 28 43 43 29 20 24 28 |.lit.c..|$(CC) $(|
|00000c60| 43 46 4c 41 47 53 29 20 | 2d 6f 20 6c 69 74 20 6c |CFLAGS) |-o lit l|
|00000c70| 69 74 2e 63 0a 00 00 00 | 00 00 00 00 00 00 00 00 |it.c....|........|
|00000c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 6c 69 74 2f 6c 69 74 2e | 31 00 00 00 00 00 00 00 |lit/lit.|1.......|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000e70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000e80| 20 20 20 36 34 31 31 20 | 20 34 34 30 34 31 30 32 | 6411 | 4404102|
|00000e90| 34 34 37 20 20 20 35 35 | 34 34 00 20 00 00 00 00 |447 55|44. ....|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 2e 54 48 20 4c 49 54 20 | 31 20 22 35 20 44 65 63 |.TH LIT |1 "5 Dec|
|00001010| 65 6d 62 65 72 20 31 39 | 38 37 22 0a 2e 53 48 20 |ember 19|87"..SH |
|00001020| 4e 41 4d 45 0a 6c 69 74 | 20 5c 2d 20 65 63 68 6f |NAME.lit| \- echo|
|00001030| 20 61 72 67 75 6d 65 6e | 74 73 0a 2e 53 48 20 53 | argumen|ts..SH S|
|00001040| 59 4e 4f 50 53 49 53 0a | 2e 42 20 65 63 68 6f 0a |YNOPSIS.|.B echo.|
|00001050| 5b 0a 2e 42 20 5c 2d 6e | 0a 5d 0a 2e 42 0a 5b 0a |[..B \-n|.]..B.[.|
|00001060| 5c 2d 64 5c 66 49 6c 69 | 73 74 5c 66 42 0a 5d 0a |\-d\fIli|st\fB.].|
|00001070| 2e 42 0a 5b 0a 5c 2d 65 | 5c 66 49 63 68 61 72 5c |.B.[.\-e|\fIchar\|
|00001080| 66 42 0a 5d 0a 2e 42 0a | 5b 0a 5c 2d 5c 2d 0a 5d |fB.]..B.|[.\-\-.]|
|00001090| 0a 5b 20 0a 2e 49 20 61 | 72 67 75 6d 65 6e 74 20 |.[ ..I a|rgument |
|000010a0| 5c 66 42 2e 5c 7c 2e 5c | 7c 2e 5c 66 50 20 0a 5d |\fB.\|.\||.\fP .]|
|000010b0| 0a 2e 53 48 20 44 45 53 | 43 52 49 50 54 49 4f 4e |..SH DES|CRIPTION|
|000010c0| 0a 2e 49 58 20 22 6c 69 | 74 20 63 6f 6d 6d 61 6e |..IX "li|t comman|
|000010d0| 64 22 20 20 22 22 20 20 | 22 5c 66 4c 6c 69 74 5c |d" "" |"\fLlit\|
|000010e0| 66 50 20 5c 28 65 6d 20 | 65 63 68 6f 20 61 72 67 |fP \(em |echo arg|
|000010f0| 75 6d 65 6e 74 73 22 0a | 2e 49 20 6c 69 74 0a 77 |uments".|.I lit.w|
|00001100| 72 69 74 65 73 20 69 74 | 73 20 61 72 67 75 6d 65 |rites it|s argume|
|00001110| 6e 74 73 20 6f 6e 20 74 | 68 65 20 73 74 61 6e 64 |nts on t|he stand|
|00001120| 61 72 64 20 6f 75 74 70 | 75 74 2c 20 61 73 20 73 |ard outp|ut, as s|
|00001130| 70 65 63 69 66 69 65 64 | 20 62 79 0a 74 68 65 20 |pecified| by.the |
|00001140| 6f 70 74 69 6f 6e 73 2e | 20 20 41 72 67 75 6d 65 |options.| Argume|
|00001150| 6e 74 73 20 61 72 65 20 | 6e 6f 72 6d 61 6c 6c 79 |nts are |normally|
|00001160| 20 73 65 70 61 72 61 74 | 65 64 20 62 79 20 62 6c | separat|ed by bl|
|00001170| 61 6e 6b 73 20 61 6e 64 | 0a 74 65 72 6d 69 6e 61 |anks and|.termina|
|00001180| 74 65 64 20 62 79 20 61 | 20 6e 65 77 2d 6c 69 6e |ted by a| new-lin|
|00001190| 65 2c 20 61 6e 64 20 77 | 72 69 74 74 65 6e 20 6c |e, and w|ritten l|
|000011a0| 69 74 65 72 61 6c 6c 79 | 2e 0a 2e 42 52 20 43 20 |iterally|...BR C |
|000011b0| 2d 73 74 79 6c 65 0a 63 | 68 61 72 61 63 74 65 72 |-style.c|haracter|
|000011c0| 20 65 73 63 61 70 65 73 | 20 61 72 65 20 61 76 61 | escapes| are ava|
|000011d0| 69 6c 61 62 6c 65 0a 2e | 49 20 69 66 0a 79 6f 75 |ilable..|I if.you|
|000011e0| 20 77 61 6e 74 20 74 68 | 65 6d 2e 0a 2e 50 50 0a | want th|em...PP.|
|000011f0| 2e 49 20 6c 69 74 0a 69 | 73 20 75 73 65 66 75 6c |.I lit.i|s useful|
|00001200| 20 66 6f 72 20 77 72 69 | 74 69 6e 67 20 6d 65 73 | for wri|ting mes|
|00001210| 73 61 67 65 73 20 69 6e | 20 73 68 65 6c 6c 20 73 |sages in| shell s|
|00001220| 63 72 69 70 74 73 2c 0a | 61 6e 64 20 66 6f 72 20 |cripts,.|and for |
|00001230| 66 65 65 64 69 6e 67 20 | 73 68 6f 72 74 20 69 6e |feeding |short in|
|00001240| 70 75 74 73 20 69 6e 74 | 6f 20 70 72 6f 67 72 61 |puts int|o progra|
|00001250| 6d 73 20 28 74 68 69 73 | 20 69 73 20 73 6f 6d 65 |ms (this| is some|
|00001260| 74 69 6d 65 73 0a 63 6c | 65 61 72 65 72 20 74 68 |times.cl|earer th|
|00001270| 61 6e 20 75 73 69 6e 67 | 20 22 68 65 72 65 20 66 |an using| "here f|
|00001280| 69 6c 65 73 22 29 2e 0a | 2e 50 50 0a 2e 49 20 6c |iles")..|.PP..I l|
|00001290| 69 74 0a 69 73 20 61 20 | 63 6c 6f 73 65 20 72 65 |it.is a |close re|
|000012a0| 6c 61 74 69 76 65 20 6f | 66 20 74 68 65 20 34 2e |lative o|f the 4.|
|000012b0| 32 20 42 53 44 20 63 6f | 6d 6d 61 6e 64 0a 2e 49 |2 BSD co|mmand..I|
|000012c0| 20 65 63 68 6f 0a 61 6e | 64 20 74 68 65 20 53 79 | echo.an|d the Sy|
|000012d0| 73 74 65 6d 20 56 20 63 | 6f 6d 6d 61 6e 64 0a 2e |stem V c|ommand..|
|000012e0| 49 52 20 65 63 68 6f 20 | 2e 0a 42 6f 74 68 20 76 |IR echo |..Both v|
|000012f0| 65 72 73 69 6f 6e 73 20 | 6f 66 0a 2e 49 20 65 63 |ersions |of..I ec|
|00001300| 68 6f 0a 68 61 76 65 20 | 73 65 72 69 6f 75 73 20 |ho.have |serious |
|00001310| 64 65 73 69 67 6e 20 66 | 6c 61 77 73 20 77 68 69 |design f|laws whi|
|00001320| 63 68 20 77 65 72 65 20 | 61 76 6f 69 64 65 64 20 |ch were |avoided |
|00001330| 69 6e 20 74 68 65 20 64 | 65 73 69 67 6e 20 6f 66 |in the d|esign of|
|00001340| 0a 2e 49 52 20 6c 69 74 | 20 2e 0a 2e 53 48 20 4f |..IR lit| ...SH O|
|00001350| 50 54 49 4f 4e 53 0a 2e | 49 50 20 5c 66 42 5c 2d |PTIONS..|IP \fB\-|
|00001360| 6e 5c 66 50 0a 44 6f 6e | 27 74 20 61 64 64 20 74 |n\fP.Don|'t add t|
|00001370| 68 65 20 5c 66 42 6e 5c | 66 50 65 77 6c 69 6e 65 |he \fBn\|fPewline|
|00001380| 20 74 6f 20 74 68 65 20 | 6f 75 74 70 75 74 2e 0a | to the |output..|
|00001390| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 73 68 |Note tha|t the sh|
|000013a0| 65 6c 6c 27 73 20 62 61 | 63 6b 2d 71 75 6f 74 65 |ell's ba|ck-quote|
|000013b0| 20 6d 65 63 68 61 6e 69 | 73 6d 20 73 74 72 69 70 | mechani|sm strip|
|000013c0| 73 20 61 20 74 65 72 6d | 69 6e 61 74 69 6e 67 0a |s a term|inating.|
|000013d0| 6e 65 77 6c 69 6e 65 2c | 20 73 6f 20 74 68 65 20 |newline,| so the |
|000013e0| 6f 6e 6c 79 20 74 69 6d | 65 20 79 6f 75 20 6e 65 |only tim|e you ne|
|000013f0| 65 64 20 74 68 69 73 20 | 69 73 20 77 68 65 6e 20 |ed this |is when |
|00001400| 77 72 69 74 69 6e 67 20 | 61 20 70 72 6f 6d 70 74 |writing |a prompt|
|00001410| 0a 74 6f 20 74 68 65 20 | 74 65 72 6d 69 6e 61 6c |.to the |terminal|
|00001420| 2e 0a 2e 49 50 20 5c 66 | 42 5c 2d 64 5c 66 50 6c |...IP \f|B\-d\fPl|
|00001430| 69 73 74 0a 4e 6f 72 6d | 61 6c 6c 79 2c 0a 2e 49 |ist.Norm|ally,..I|
|00001440| 20 6c 69 74 0a 69 6e 73 | 65 72 74 73 20 61 20 73 | lit.ins|erts a s|
|00001450| 70 61 63 65 20 62 65 74 | 77 65 65 6e 20 69 74 73 |pace bet|ween its|
|00001460| 20 61 72 67 75 6d 65 6e | 74 73 2e 20 20 59 6f 75 | argumen|ts. You|
|00001470| 20 63 61 6e 20 6f 76 65 | 72 2d 72 69 64 65 20 74 | can ove|r-ride t|
|00001480| 68 69 73 0a 77 69 74 68 | 20 74 68 65 20 5c 2d 64 |his.with| the \-d|
|00001490| 20 6f 70 74 69 6f 6e 2e | 20 20 57 69 74 68 20 61 | option.| With a|
|000014a0| 20 62 61 72 65 20 5c 2d | 64 2c 20 74 68 65 20 74 | bare \-|d, the t|
|000014b0| 61 62 20 63 68 61 72 61 | 63 74 65 72 20 69 73 20 |ab chara|cter is |
|000014c0| 75 73 65 64 2e 0a 57 69 | 74 68 20 61 20 6c 69 73 |used..Wi|th a lis|
|000014d0| 74 20 6f 66 20 63 68 61 | 72 61 63 74 65 72 73 2c |t of cha|racters,|
|000014e0| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 73 20 | the cha|racters |
|000014f0| 61 72 65 20 75 73 65 64 | 20 63 69 72 63 75 6c 61 |are used| circula|
|00001500| 72 6c 79 0a 28 61 73 20 | 69 6e 20 70 61 73 74 65 |rly.(as |in paste|
|00001510| 28 31 29 29 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 |(1)). F|or examp|
|00001520| 6c 65 2c 20 5c 2d 64 78 | 79 20 77 69 6c 6c 20 69 |le, \-dx|y will i|
|00001530| 6e 73 65 72 74 20 78 20 | 61 66 74 65 72 20 74 68 |nsert x |after th|
|00001540| 65 0a 31 73 74 2c 20 33 | 72 64 2c 20 35 74 68 20 |e.1st, 3|rd, 5th |
|00001550| 26 63 20 61 72 67 75 6d | 65 6e 74 73 20 61 6e 64 |&c argum|ents and|
|00001560| 20 79 20 61 66 74 65 72 | 20 74 68 65 20 32 6e 64 | y after| the 2nd|
|00001570| 2c 20 34 74 68 2c 20 36 | 74 68 20 26 63 2e 0a 54 |, 4th, 6|th &c..T|
|00001580| 68 65 72 65 20 69 73 20 | 63 75 72 72 65 6e 74 6c |here is |currentl|
|00001590| 79 20 6e 6f 20 77 61 79 | 20 6f 66 20 73 70 65 63 |y no way| of spec|
|000015a0| 69 66 79 69 6e 67 20 61 | 6e 20 65 6d 70 74 79 20 |ifying a|n empty |
|000015b0| 6f 72 20 6d 75 6c 74 69 | 2d 0a 63 68 61 72 61 63 |or multi|-.charac|
|000015c0| 74 65 72 20 73 65 70 61 | 72 61 74 6f 72 2c 20 62 |ter sepa|rator, b|
|000015d0| 75 74 20 73 65 65 20 74 | 68 65 20 65 78 61 6d 70 |ut see t|he examp|
|000015e0| 6c 65 73 2e 0a 2e 49 50 | 20 5c 66 42 5c 2d 65 5c |les...IP| \fB\-e\|
|000015f0| 66 50 63 68 61 72 0a 2e | 49 20 6c 69 74 0a 6e 6f |fPchar..|I lit.no|
|00001600| 72 6d 61 6c 6c 79 20 63 | 6f 70 69 65 73 20 69 74 |rmally c|opies it|
|00001610| 73 20 61 72 67 75 6d 65 | 6e 74 73 20 74 6f 20 69 |s argume|nts to i|
|00001620| 74 73 20 73 74 61 6e 64 | 61 72 64 20 6f 75 74 70 |ts stand|ard outp|
|00001630| 75 74 20 6c 69 74 65 72 | 61 6c 6c 79 2e 0a 49 66 |ut liter|ally..If|
|00001640| 20 79 6f 75 20 77 61 6e | 74 0a 2e 42 52 20 43 20 | you wan|t..BR C |
|00001650| 2d 73 74 79 6c 65 0a 63 | 68 61 72 61 63 74 65 72 |-style.c|haracter|
|00001660| 20 65 73 63 61 70 65 73 | 2c 20 75 73 65 20 74 68 | escapes|, use th|
|00001670| 69 73 20 6f 70 74 69 6f | 6e 2e 20 20 41 20 62 61 |is optio|n. A ba|
|00001680| 72 65 20 5c 2d 65 20 73 | 70 65 63 69 66 69 65 73 |re \-e s|pecifies|
|00001690| 20 74 68 65 0a 65 73 63 | 61 70 65 20 63 68 61 72 | the.esc|ape char|
|000016a0| 61 63 74 65 72 20 74 6f | 20 62 65 20 5c 65 20 61 |acter to| be \e a|
|000016b0| 73 20 69 6e 20 43 2e 20 | 20 5c 2d 65 58 20 73 70 |s in C. | \-eX sp|
|000016c0| 65 63 69 66 69 65 73 20 | 74 68 65 0a 65 73 63 61 |ecifies |the.esca|
|000016d0| 70 65 20 63 68 61 72 61 | 63 74 65 72 20 74 6f 20 |pe chara|cter to |
|000016e0| 62 65 20 58 2e 20 20 59 | 6f 75 20 6d 61 79 20 66 |be X. Y|ou may f|
|000016f0| 69 6e 64 20 5c 2d 65 40 | 20 74 6f 20 62 65 20 75 |ind \-e@| to be u|
|00001700| 73 65 66 75 6c 20 69 6e | 0a 73 68 65 6c 6c 20 73 |seful in|.shell s|
|00001710| 63 72 69 70 74 20 61 73 | 20 61 20 77 61 79 20 6f |cript as| a way o|
|00001720| 66 20 61 76 6f 69 64 69 | 6e 67 20 63 6f 6e 66 6c |f avoidi|ng confl|
|00001730| 69 63 74 73 20 77 69 74 | 68 20 74 68 65 20 73 68 |icts wit|h the sh|
|00001740| 65 6c 6c 27 73 0a 75 73 | 65 20 6f 66 20 5c 65 20 |ell's.us|e of \e |
|00001750| 2e 20 20 41 6c 70 68 61 | 62 65 74 69 63 20 63 61 |. Alpha|betic ca|
|00001760| 73 65 20 69 73 20 69 67 | 6e 6f 72 65 64 20 69 6e |se is ig|nored in|
|00001770| 20 74 68 65 20 65 73 63 | 61 70 65 73 2c 20 77 68 | the esc|apes, wh|
|00001780| 69 63 68 20 61 72 65 0a | 2e 50 50 0a 2e 52 53 0a |ich are.|.PP..RS.|
|00001790| 2e 50 44 20 30 0a 2e 54 | 50 0a 2e 42 20 5c 65 61 |.PD 0..T|P..B \ea|
|000017a0| 0a 61 75 64 69 62 6c 65 | 20 61 6c 61 72 6d 20 28 |.audible| alarm (|
|000017b0| 62 65 6c 6c 29 0a 2e 54 | 50 0a 2e 42 20 5c 65 62 |bell)..T|P..B \eb|
|000017c0| 0a 62 61 63 6b 73 70 61 | 63 65 0a 2e 54 50 0a 2e |.backspa|ce..TP..|
|000017d0| 42 20 5c 65 64 0a 64 65 | 6c 65 74 65 0a 2e 54 50 |B \ed.de|lete..TP|
|000017e0| 0a 2e 54 50 0a 2e 42 20 | 5c 65 65 0a 65 73 63 61 |..TP..B |\ee.esca|
|000017f0| 70 65 20 28 45 53 43 2c | 20 6e 6f 74 20 5c 65 29 |pe (ESC,| not \e)|
|00001800| 0a 2e 42 20 5c 65 66 0a | 66 6f 72 6d 2d 66 65 65 |..B \ef.|form-fee|
|00001810| 64 0a 2e 54 50 0a 2e 42 | 20 5c 65 6e 0a 6e 65 77 |d..TP..B| \en.new|
|00001820| 2d 6c 69 6e 65 0a 2e 54 | 50 0a 2e 42 20 5c 65 72 |-line..T|P..B \er|
|00001830| 0a 63 61 72 72 69 61 67 | 65 20 72 65 74 75 72 6e |.carriag|e return|
|00001840| 0a 2e 54 50 0a 2e 42 20 | 5c 65 73 0a 73 70 61 63 |..TP..B |\es.spac|
|00001850| 65 0a 2e 54 50 0a 2e 42 | 20 5c 65 74 0a 74 61 62 |e..TP..B| \et.tab|
|00001860| 0a 2e 54 50 0a 2e 42 20 | 5c 65 76 0a 76 65 72 74 |..TP..B |\ev.vert|
|00001870| 69 63 61 6c 20 74 61 62 | 0a 2e 54 50 0a 2e 42 20 |ical tab|..TP..B |
|00001880| 5c 65 5c 65 0a 74 68 65 | 20 65 73 63 61 70 65 20 |\e\e.the| escape |
|00001890| 63 68 61 72 61 63 74 65 | 72 20 69 74 73 65 6c 66 |characte|r itself|
|000018a0| 0a 2e 54 50 0a 2e 42 49 | 20 5c 65 78 20 6e 0a 74 |..TP..BI| \ex n.t|
|000018b0| 68 65 20 38 2d 62 69 74 | 20 63 68 61 72 61 63 74 |he 8-bit| charact|
|000018c0| 65 72 20 77 68 6f 73 65 | 20 5c 73 2d 31 41 53 43 |er whose| \s-1ASC|
|000018d0| 49 49 5c 73 30 20 63 6f | 64 65 20 69 73 0a 74 68 |II\s0 co|de is.th|
|000018e0| 65 20 31 2d 20 6f 72 20 | 32 2d 64 69 67 69 74 20 |e 1- or |2-digit |
|000018f0| 68 65 78 61 64 65 63 69 | 6d 61 6c 20 6e 75 6d 62 |hexadeci|mal numb|
|00001900| 65 72 0a 2e 49 52 20 6e | 20 2e 0a 2e 54 50 0a 2e |er..IR n| ...TP..|
|00001910| 42 49 20 5c 65 6f 20 6e | 0a 74 68 65 20 38 2d 62 |BI \eo n|.the 8-b|
|00001920| 69 74 20 63 68 61 72 61 | 63 74 65 72 20 77 68 6f |it chara|cter who|
|00001930| 73 65 20 5c 73 2d 31 41 | 53 43 49 49 5c 73 30 20 |se \s-1A|SCII\s0 |
|00001940| 63 6f 64 65 20 69 73 0a | 74 68 65 20 31 2d 2c 20 |code is.|the 1-, |
|00001950| 32 2d 20 6f 72 20 33 2d | 64 69 67 69 74 20 6f 63 |2- or 3-|digit oc|
|00001960| 74 61 6c 20 6e 75 6d 62 | 65 72 0a 2e 49 52 20 6e |tal numb|er..IR n|
|00001970| 20 2c 0a 77 68 69 63 68 | 20 6e 65 65 64 20 6e 6f | ,.which| need no|
|00001980| 74 20 73 74 61 72 74 20 | 77 69 74 68 20 61 20 7a |t start |with a z|
|00001990| 65 72 6f 2e 0a 2e 54 50 | 0a 2e 42 49 20 5c 65 20 |ero...TP|..BI \e |
|000019a0| 6e 0a 74 68 65 20 38 2d | 62 69 74 20 63 68 61 72 |n.the 8-|bit char|
|000019b0| 61 63 74 65 72 20 77 68 | 6f 73 65 20 5c 73 2d 31 |acter wh|ose \s-1|
|000019c0| 41 53 43 49 49 5c 73 30 | 20 63 6f 64 65 20 69 73 |ASCII\s0| code is|
|000019d0| 0a 74 68 65 20 31 2d 2c | 20 32 2d 20 6f 72 20 33 |.the 1-,| 2- or 3|
|000019e0| 2d 64 69 67 69 74 20 6f | 63 74 61 6c 20 6e 75 6d |-digit o|ctal num|
|000019f0| 62 65 72 0a 2e 49 52 20 | 6e 20 2c 0a 77 68 69 63 |ber..IR |n ,.whic|
|00001a00| 68 20 6e 65 65 64 20 6e | 6f 74 20 73 74 61 72 74 |h need n|ot start|
|00001a10| 20 77 69 74 68 20 61 20 | 7a 65 72 6f 2e 0a 2e 52 | with a |zero...R|
|00001a20| 45 0a 2e 53 48 20 45 58 | 41 4d 50 4c 45 53 0a 2e |E..SH EX|AMPLES..|
|00001a30| 54 50 20 31 35 6d 0a 6c | 69 74 20 5c 7c 5c 2d 6e |TP 15m.l|it \|\-n|
|00001a40| 20 22 45 6e 74 65 72 20 | 63 6f 75 6e 74 3a 20 22 | "Enter |count: "|
|00001a50| 20 3b 20 72 65 61 64 20 | 63 6f 75 6e 74 0a 54 6f | ; read |count.To|
|00001a60| 20 6f 62 74 61 69 6e 20 | 70 72 6f 6d 70 74 65 64 | obtain |prompted|
|00001a70| 20 69 6e 70 75 74 20 69 | 6e 20 74 68 65 20 42 6f | input i|n the Bo|
|00001a80| 75 72 6e 65 20 73 68 65 | 6c 6c 2e 0a 2e 54 50 0a |urne she|ll...TP.|
|00001a90| 6c 69 74 20 2d 6e 20 66 | 6f 6f 20 3b 20 6c 69 74 |lit -n f|oo ; lit|
|00001aa0| 20 2d 6e 20 62 61 7a 20 | 3b 20 6c 69 74 20 75 67 | -n baz |; lit ug|
|00001ab0| 68 0a 65 63 68 6f 20 22 | 66 6f 6f 62 61 7a 75 67 |h.echo "|foobazug|
|00001ac0| 68 22 20 74 6f 20 74 68 | 65 20 74 65 72 6d 69 6e |h" to th|e termin|
|00001ad0| 61 6c 20 77 69 74 68 20 | 6e 6f 20 73 65 70 61 72 |al with |no separ|
|00001ae0| 61 74 6f 72 73 2e 0a 2e | 54 50 0a 6c 69 74 20 5c |ators...|TP.lit \|
|00001af0| 7c 5c 2d 5c 2d 20 5c 2d | 6e 20 5c 2d 65 20 5c 2d ||\-\- \-|n \-e \-|
|00001b00| 64 0a 65 63 68 6f 20 22 | 2d 6e 20 2d 65 20 2d 64 |d.echo "|-n -e -d|
|00001b10| 22 20 74 6f 20 74 68 65 | 20 73 74 61 6e 64 61 72 |" to the| standar|
|00001b20| 64 20 6f 75 74 70 75 74 | 2e 0a 2e 54 50 0a 6c 69 |d output|...TP.li|
|00001b30| 74 20 5c 7c 5c 2d 65 40 | 20 22 61 40 6e 62 40 6e |t \|\-e@| "a@nb@n|
|00001b40| 63 22 20 5c 7c 5c 28 62 | 76 5c 7c 20 70 72 6f 67 |c" \|\(b|v\| prog|
|00001b50| 72 61 6d 0a 72 75 6e 20 | 70 72 6f 67 72 61 6d 20 |ram.run |program |
|00001b60| 77 69 74 68 20 74 68 72 | 65 65 20 6c 69 6e 65 73 |with thr|ee lines|
|00001b70| 20 6f 66 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 | of stan|dard inp|
|00001b80| 75 74 2e 0a 2e 54 50 0a | 76 61 72 69 61 62 6c 65 |ut...TP.|variable|
|00001b90| 3d 60 6c 69 74 20 5c 2d | 64 3a 20 5c 2d 5c 2d 20 |=`lit \-|d: \-\- |
|00001ba0| 2a 66 6f 6f 2a 60 0a 74 | 6f 20 61 73 73 69 67 6e |*foo*`.t|o assign|
|00001bb0| 20 74 6f 20 74 68 65 20 | 73 68 65 6c 6c 20 76 61 | to the |shell va|
|00001bc0| 72 69 61 62 6c 65 20 22 | 76 61 72 69 61 62 6c 65 |riable "|variable|
|00001bd0| 22 20 61 20 63 6f 6c 6f | 6e 2d 73 65 70 61 72 61 |" a colo|n-separa|
|00001be0| 74 65 64 0a 6c 69 73 74 | 20 6f 66 20 66 69 6c 65 |ted.list| of file|
|00001bf0| 20 6e 61 6d 65 73 20 6d | 61 74 63 68 69 6e 67 20 | names m|atching |
|00001c00| 2a 66 6f 6f 2a 20 2e 20 | 20 54 68 65 20 5c 2d 5c |*foo* . | The \-\|
|00001c10| 2d 20 69 73 20 6e 65 65 | 64 65 64 20 69 6e 0a 63 |- is nee|ded in.c|
|00001c20| 61 73 65 20 74 68 65 20 | 66 69 6c 65 20 73 75 63 |ase the |file suc|
|00001c30| 68 20 66 69 6c 65 20 6e | 61 6d 65 20 73 74 61 72 |h file n|ame star|
|00001c40| 74 73 20 77 69 74 68 20 | 61 20 68 79 70 68 65 6e |ts with |a hyphen|
|00001c50| 2e 20 20 4e 6f 74 65 20 | 74 68 61 74 0a 79 6f 75 |. Note |that.you|
|00001c60| 20 63 61 6e 6e 6f 74 20 | 64 6f 20 74 68 69 73 20 | cannot |do this |
|00001c70| 77 69 74 68 20 74 68 65 | 20 53 79 73 74 65 6d 20 |with the| System |
|00001c80| 56 0a 2e 49 20 65 63 68 | 6f 0a 63 6f 6d 6d 61 6e |V..I ech|o.comman|
|00001c90| 64 2c 20 62 65 63 61 75 | 73 65 20 74 68 65 20 66 |d, becau|se the f|
|00001ca0| 69 6c 65 20 6e 61 6d 65 | 73 20 6d 69 67 68 74 20 |ile name|s might |
|00001cb0| 63 6f 6e 74 61 69 6e 20 | 5c 65 20 43 68 61 72 61 |contain |\e Chara|
|00001cc0| 63 74 65 72 73 2c 20 77 | 68 69 63 68 20 0a 2e 49 |cters, w|hich ..I|
|00001cd0| 20 65 63 68 6f 0a 77 6f | 75 6c 64 20 28 6d 69 73 | echo.wo|uld (mis|
|00001ce0| 2d 29 69 6e 74 65 72 70 | 72 65 74 2e 0a 2e 53 48 |-)interp|ret...SH|
|00001cf0| 20 53 45 45 20 41 4c 53 | 4f 0a 73 68 28 31 29 2c | SEE ALS|O.sh(1),|
|00001d00| 20 65 63 68 6f 28 31 29 | 0a 00 00 00 00 00 00 00 | echo(1)|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 6c 69 74 2f 6c 69 74 2e | 63 00 00 00 00 00 00 00 |lit/lit.|c.......|
|00001e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001e70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001e80| 20 20 31 31 35 34 36 20 | 20 34 34 30 34 31 30 32 | 11546 | 4404102|
|00001e90| 34 35 31 20 20 20 35 36 | 34 36 00 20 00 00 00 00 |451 56|46. ....|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 2f 2a 20 20 46 69 6c 65 | 20 20 20 3a 20 6c 69 74 |/* File| : lit|
|00002010| 2e 63 0a 20 20 20 20 41 | 75 74 68 6f 72 20 3a 20 |.c. A|uthor : |
|00002020| 52 69 63 68 61 72 64 20 | 41 2e 20 4f 27 4b 65 65 |Richard |A. O'Kee|
|00002030| 66 65 0a 20 20 20 20 55 | 70 64 61 74 65 64 3a 20 |fe. U|pdated: |
|00002040| 35 20 44 65 63 65 6d 62 | 65 72 20 31 39 38 37 0a |5 Decemb|er 1987.|
|00002050| 20 20 20 20 50 75 72 70 | 6f 73 65 3a 20 52 65 70 | Purp|ose: Rep|
|00002060| 6c 61 63 65 6d 65 6e 74 | 20 66 6f 72 20 65 63 68 |lacement| for ech|
|00002070| 6f 28 31 29 2e 0a 0a 20 | 20 20 20 54 68 65 72 65 |o(1)... | There|
|00002080| 20 61 72 65 20 74 77 6f | 20 76 65 72 73 69 6f 6e | are two| version|
|00002090| 73 20 6f 66 20 74 68 65 | 20 65 63 68 6f 28 31 29 |s of the| echo(1)|
|000020a0| 20 63 6f 6d 6d 61 6e 64 | 3a 0a 09 34 2e 32 20 42 | command|:..4.2 B|
|000020b0| 53 44 0a 09 20 20 20 20 | 65 63 68 6f 20 5b 2d 6e |SD.. |echo [-n|
|000020c0| 5d 20 61 72 67 75 6d 65 | 6e 74 2e 2e 2e 0a 20 20 |] argume|nt.... |
|000020d0| 20 20 20 20 20 20 53 79 | 73 74 65 6d 20 56 0a 09 | Sy|stem V..|
|000020e0| 20 20 20 20 65 63 68 6f | 20 61 72 67 75 6d 65 6e | echo| argumen|
|000020f0| 74 2e 2e 2e 0a 20 20 20 | 20 42 6f 74 68 20 61 72 |t.... | Both ar|
|00002100| 65 20 62 61 64 6c 79 20 | 64 65 73 69 67 6e 65 64 |e badly |designed|
|00002110| 2e 20 20 54 68 65 20 34 | 2e 32 20 76 65 72 73 69 |. The 4|.2 versi|
|00002120| 6f 6e 20 68 61 73 20 6e | 6f 20 77 61 79 20 6f 66 |on has n|o way of|
|00002130| 20 70 72 69 6e 74 69 6e | 67 0a 20 20 20 20 73 6f | printin|g. so|
|00002140| 6d 65 74 68 69 6e 67 20 | 77 68 69 63 68 20 73 74 |mething |which st|
|00002150| 61 72 74 73 20 77 69 74 | 68 20 2d 6e 2e 20 20 54 |arts wit|h -n. T|
|00002160| 68 65 20 53 79 73 74 65 | 6d 20 56 20 6f 6e 65 20 |he Syste|m V one |
|00002170| 68 61 73 20 6e 6f 20 77 | 61 79 20 6f 66 0a 20 20 |has no w|ay of. |
|00002180| 20 20 73 77 69 74 63 68 | 69 6e 67 20 6f 66 66 20 | switch|ing off |
|00002190| 74 68 65 20 65 73 63 61 | 70 65 20 63 68 61 72 61 |the esca|pe chara|
|000021a0| 63 74 65 72 20 69 6e 74 | 65 72 70 72 65 74 61 74 |cter int|erpretat|
|000021b0| 69 6f 6e 20 77 68 69 63 | 68 20 69 73 20 69 74 73 |ion whic|h is its|
|000021c0| 0a 20 20 20 20 67 72 65 | 61 74 20 6e 65 77 20 66 |. gre|at new f|
|000021d0| 65 61 74 75 72 65 2c 20 | 61 6e 64 20 6c 61 63 6b |eature, |and lack|
|000021e0| 73 20 61 6e 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |s an equ|ivalent |
|000021f0| 6f 66 20 2d 6e 2e 0a 0a | 20 20 20 20 54 68 65 20 |of -n...| The |
|00002200| 73 6f 6c 75 74 69 6f 6e | 20 69 73 20 74 6f 20 68 |solution| is to h|
|00002210| 61 76 65 20 61 20 6e 65 | 77 20 63 6f 6d 6d 61 6e |ave a ne|w comman|
|00002220| 64 20 77 68 69 63 68 20 | 64 6f 65 73 20 74 68 69 |d which |does thi|
|00002230| 6e 67 73 20 52 49 47 48 | 54 2e 0a 0a 20 20 20 20 |ngs RIGH|T... |
|00002240| 53 59 4e 4f 50 53 49 53 | 0a 09 6c 69 74 20 5b 2d |SYNOPSIS|..lit [-|
|00002250| 6e 5d 20 5b 2d 64 6c 69 | 73 74 5d 20 5b 2d 65 63 |n] [-dli|st] [-ec|
|00002260| 68 61 72 5d 20 5b 2d 2d | 5d 20 61 72 67 75 6d 65 |har] [--|] argume|
|00002270| 6e 74 2e 2e 2e 0a 0a 20 | 20 20 20 4f 50 54 49 4f |nt..... | OPTIO|
|00002280| 4e 53 0a 20 20 20 20 2d | 6e 09 73 75 70 70 72 65 |NS. -|n.suppre|
|00002290| 73 73 20 74 68 65 20 6e | 65 77 2d 6c 69 6e 65 20 |ss the n|ew-line |
|000022a0| 77 68 69 63 68 20 69 73 | 20 6e 6f 72 6d 61 6c 6c |which is| normall|
|000022b0| 79 20 70 72 69 6e 74 65 | 64 20 61 74 20 74 68 65 |y printe|d at the|
|000022c0| 20 65 6e 64 2e 0a 0a 20 | 20 20 20 2d 64 6c 09 6e | end... | -dl.n|
|000022d0| 6f 72 6d 61 6c 6c 79 2c | 20 61 20 73 69 6e 67 6c |ormally,| a singl|
|000022e0| 65 20 73 70 61 63 65 20 | 69 73 20 77 72 69 74 74 |e space |is writt|
|000022f0| 65 6e 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 61 |en betwe|en the a|
|00002300| 72 67 75 6d 65 6e 74 73 | 2e 0a 09 57 69 74 68 20 |rguments|...With |
|00002310| 74 68 65 20 6f 70 74 69 | 6f 6e 20 22 2d 64 22 20 |the opti|on "-d" |
|00002320| 6f 6e 20 69 74 73 20 6f | 77 6e 2c 20 61 20 74 61 |on its o|wn, a ta|
|00002330| 62 20 69 73 20 77 72 69 | 74 74 65 6e 20 69 6e 73 |b is wri|tten ins|
|00002340| 74 65 61 64 2e 0a 09 57 | 68 65 6e 20 74 68 65 72 |tead...W|hen ther|
|00002350| 65 20 61 72 65 20 63 68 | 61 72 61 63 74 65 72 73 |e are ch|aracters|
|00002360| 20 61 66 74 65 72 20 74 | 68 65 20 22 2d 64 22 2c | after t|he "-d",|
|00002370| 20 74 68 65 73 65 20 63 | 68 61 72 61 63 74 65 72 | these c|haracter|
|00002380| 73 0a 09 61 72 65 20 75 | 73 65 64 20 69 6e 20 74 |s..are u|sed in t|
|00002390| 75 72 6e 2c 20 65 2e 67 | 2e 20 2d 64 22 3a 20 2c |urn, e.g|. -d": ,|
|000023a0| 20 22 20 77 6f 75 6c 64 | 20 75 73 65 20 22 3a 22 | " would| use ":"|
|000023b0| 20 74 68 65 6e 20 22 20 | 22 20 74 68 65 6e 0a 09 | then " |" then..|
|000023c0| 22 2c 22 20 74 68 65 6e | 20 22 20 22 20 74 68 65 |"," then| " " the|
|000023d0| 6e 20 22 3a 22 20 61 67 | 61 69 6e 2e 20 20 54 68 |n ":" ag|ain. Th|
|000023e0| 65 20 64 65 66 61 75 6c | 74 20 69 73 20 74 68 75 |e defaul|t is thu|
|000023f0| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 0a 09 74 6f |s equiva|lent..to|
|00002400| 20 2d 64 22 20 22 2e 0a | 0a 20 20 20 20 2d 65 78 | -d" "..|. -ex|
|00002410| 09 6e 6f 72 6d 61 6c 6c | 79 2c 20 74 68 65 20 61 |.normall|y, the a|
|00002420| 72 67 75 6d 65 6e 74 73 | 20 61 72 65 20 63 6f 70 |rguments| are cop|
|00002430| 69 65 64 20 6c 69 74 65 | 72 61 6c 6c 79 2e 0a 09 |ied lite|rally...|
|00002440| 57 69 74 68 20 74 68 65 | 20 6f 70 74 69 6f 6e 20 |With the| option |
|00002450| 22 2d 65 22 20 6f 6e 20 | 69 74 73 20 6f 77 6e 2c |"-e" on |its own,|
|00002460| 20 43 2d 73 74 79 6c 65 | 20 63 68 61 72 61 63 74 | C-style| charact|
|00002470| 65 72 20 65 73 63 61 70 | 65 73 0a 09 61 72 65 20 |er escap|es..are |
|00002480| 69 6e 74 65 72 70 72 65 | 74 65 64 2e 20 20 49 6e |interpre|ted. In|
|00002490| 20 66 61 63 74 2c 20 72 | 61 74 68 65 72 20 6d 6f | fact, r|ather mo|
|000024a0| 72 65 20 74 68 61 6e 20 | 6d 6f 73 74 20 43 73 2e |re than |most Cs.|
|000024b0| 0a 09 57 69 74 68 20 74 | 68 65 20 6f 70 74 69 6f |..With t|he optio|
|000024c0| 6e 20 22 2d 65 78 22 2c | 20 74 68 65 20 63 68 61 |n "-ex",| the cha|
|000024d0| 72 61 63 74 65 72 20 22 | 78 22 20 69 73 20 75 73 |racter "|x" is us|
|000024e0| 65 64 20 69 6e 73 74 65 | 61 64 20 6f 66 0a 09 43 |ed inste|ad of..C|
|000024f0| 27 73 20 62 61 63 6b 73 | 6c 61 73 68 3b 20 20 74 |'s backs|lash; t|
|00002500| 68 69 73 20 6d 61 6b 65 | 73 20 69 74 20 65 61 73 |his make|s it eas|
|00002510| 69 65 72 20 74 6f 20 75 | 73 65 20 69 6e 20 73 63 |ier to u|se in sc|
|00002520| 72 69 70 74 73 2e 0a 09 | 46 6f 72 20 65 78 61 6d |ripts...|For exam|
|00002530| 70 6c 65 2c 0a 09 20 20 | 20 20 6c 69 74 20 2d 65 |ple,.. | lit -e|
|00002540| 40 20 61 40 74 62 40 74 | 63 0a 09 77 72 69 74 65 |@ a@tb@t|c..write|
|00002550| 73 20 6f 75 74 20 61 2c | 20 54 41 42 2c 20 62 2c |s out a,| TAB, b,|
|00002560| 20 54 41 42 2c 20 63 2c | 20 4e 45 57 4c 49 4e 45 | TAB, c,| NEWLINE|
|00002570| 2e 0a 0a 20 20 20 20 2d | 2d 09 69 6e 64 69 63 61 |... -|-.indica|
|00002580| 74 65 73 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 |tes the |end of t|
|00002590| 68 65 20 6f 70 74 69 6f | 6e 73 2e 20 20 54 68 69 |he optio|ns. Thi|
|000025a0| 73 20 69 73 20 6f 6e 6c | 79 20 6e 65 65 64 65 64 |s is onl|y needed|
|000025b0| 20 69 66 20 74 68 65 0a | 09 66 69 72 73 74 20 61 | if the.|.first a|
|000025c0| 72 67 75 6d 65 6e 74 20 | 62 65 67 69 6e 73 20 77 |rgument |begins w|
|000025d0| 69 74 68 20 61 20 22 2d | 22 2e 0a 2a 2f 0a 0a 23 |ith a "-|"..*/..#|
|000025e0| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|000025f0| 3e 0a 0a 63 68 61 72 20 | 2a 70 72 6f 67 72 61 6d |>..char |*program|
|00002600| 5f 6e 61 6d 65 20 3d 20 | 22 6c 69 74 22 3b 0a 0a |_name = |"lit";..|
|00002610| 76 6f 69 64 20 4f 75 74 | 70 75 74 45 72 72 6f 72 |void Out|putError|
|00002620| 28 29 0a 20 20 20 20 7b | 0a 09 28 76 6f 69 64 29 |(). {|..(void)|
|00002630| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|00002640| 0a 09 20 20 20 20 22 25 | 73 3a 20 49 2f 4f 20 65 |.. "%|s: I/O e|
|00002650| 72 72 6f 72 20 6e 65 61 | 72 20 62 79 74 65 20 25 |rror nea|r byte %|
|00002660| 6c 64 20 6f 66 20 6f 75 | 74 70 75 74 5c 6e 22 2c |ld of ou|tput\n",|
|00002670| 0a 09 20 20 20 20 70 72 | 6f 67 72 61 6d 5f 6e 61 |.. pr|ogram_na|
|00002680| 6d 65 2c 20 66 74 65 6c | 6c 28 73 74 64 6f 75 74 |me, ftel|l(stdout|
|00002690| 29 29 3b 0a 09 65 78 69 | 74 28 31 29 3b 0a 20 20 |));..exi|t(1);. |
|000026a0| 20 20 7d 0a 0a 0a 76 6f | 69 64 20 57 72 69 74 65 | }...vo|id Write|
|000026b0| 43 68 61 72 28 63 29 0a | 20 20 20 20 69 6e 74 20 |Char(c).| int |
|000026c0| 63 3b 0a 20 20 20 20 7b | 0a 09 69 66 20 28 70 75 |c;. {|..if (pu|
|000026d0| 74 63 68 61 72 28 63 29 | 20 3c 20 30 29 20 4f 75 |tchar(c)| < 0) Ou|
|000026e0| 74 70 75 74 45 72 72 6f | 72 28 29 3b 0a 20 20 20 |tputErro|r();. |
|000026f0| 20 7d 0a 0a 0a 76 6f 69 | 64 20 44 69 73 70 6c 61 | }...voi|d Displa|
|00002700| 79 28 73 74 72 69 6e 67 | 2c 20 65 73 63 61 70 65 |y(string|, escape|
|00002710| 5f 63 68 61 72 61 63 74 | 65 72 29 0a 20 20 20 20 |_charact|er). |
|00002720| 63 68 61 72 20 2a 73 74 | 72 69 6e 67 3b 0a 20 20 |char *st|ring;. |
|00002730| 20 20 69 6e 74 20 65 73 | 63 61 70 65 5f 63 68 61 | int es|cape_cha|
|00002740| 72 61 63 74 65 72 3b 0a | 20 20 20 20 7b 0a 09 72 |racter;.| {..r|
|00002750| 65 67 69 73 74 65 72 20 | 46 49 4c 45 20 2a 6f 75 |egister |FILE *ou|
|00002760| 74 70 75 74 20 3d 20 73 | 74 64 6f 75 74 3b 0a 09 |tput = s|tdout;..|
|00002770| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 20 2a 73 |register| char *s|
|00002780| 3b 0a 09 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 |;..regis|ter int |
|00002790| 63 3b 0a 09 69 6e 74 20 | 69 2c 20 6e 3b 0a 0a 09 |c;..int |i, n;...|
|000027a0| 66 6f 72 20 28 73 20 3d | 20 73 74 72 69 6e 67 3b |for (s =| string;|
|000027b0| 20 63 20 3d 20 2a 73 2b | 2b 3b 20 29 20 7b 0a 09 | c = *s+|+; ) {..|
|000027c0| 20 20 20 20 69 66 20 28 | 63 20 3d 3d 20 65 73 63 | if (|c == esc|
|000027d0| 61 70 65 5f 63 68 61 72 | 61 63 74 65 72 29 20 73 |ape_char|acter) s|
|000027e0| 77 69 74 63 68 20 28 63 | 20 3d 20 2a 73 2b 2b 29 |witch (c| = *s++)|
|000027f0| 20 7b 0a 09 09 63 61 73 | 65 20 27 6e 27 3a 20 63 | {...cas|e 'n': c|
|00002800| 61 73 65 20 27 4e 27 3a | 09 09 2f 2a 20 6e 65 77 |ase 'N':|../* new|
|00002810| 6c 69 6e 65 20 2a 2f 0a | 09 09 20 20 20 20 63 20 |line */.|.. c |
|00002820| 3d 20 31 30 3b 20 62 72 | 65 61 6b 3b 0a 09 09 63 |= 10; br|eak;...c|
|00002830| 61 73 65 20 27 74 27 3a | 20 63 61 73 65 20 27 54 |ase 't':| case 'T|
|00002840| 27 3a 09 09 2f 2a 20 74 | 61 62 20 2a 2f 0a 09 09 |':../* t|ab */...|
|00002850| 20 20 20 20 63 20 3d 20 | 20 39 3b 20 62 72 65 61 | c = | 9; brea|
|00002860| 6b 3b 0a 09 09 63 61 73 | 65 20 27 72 27 3a 20 63 |k;...cas|e 'r': c|
|00002870| 61 73 65 20 27 52 27 3a | 09 09 2f 2a 20 72 65 74 |ase 'R':|../* ret|
|00002880| 75 72 6e 20 2a 2f 0a 09 | 09 20 20 20 20 63 20 3d |urn */..|. c =|
|00002890| 20 31 33 3b 20 62 72 65 | 61 6b 3b 0a 09 09 63 61 | 13; bre|ak;...ca|
|000028a0| 73 65 20 27 76 27 3a 20 | 63 61 73 65 20 27 56 27 |se 'v': |case 'V'|
|000028b0| 3a 09 09 2f 2a 20 76 65 | 72 74 69 63 61 6c 20 74 |:../* ve|rtical t|
|000028c0| 61 62 20 2a 2f 0a 09 09 | 20 20 20 20 63 20 3d 20 |ab */...| c = |
|000028d0| 31 31 3b 20 62 72 65 61 | 6b 3b 0a 09 09 63 61 73 |11; brea|k;...cas|
|000028e0| 65 20 27 62 27 3a 20 63 | 61 73 65 20 27 42 27 3a |e 'b': c|ase 'B':|
|000028f0| 09 09 2f 2a 20 62 61 63 | 6b 73 70 61 63 65 20 2a |../* bac|kspace *|
|00002900| 2f 0a 09 09 20 20 20 20 | 63 20 3d 20 20 38 3b 20 |/... |c = 8; |
|00002910| 62 72 65 61 6b 3b 0a 09 | 09 63 61 73 65 20 27 66 |break;..|.case 'f|
|00002920| 27 3a 20 63 61 73 65 20 | 27 46 27 3a 09 09 2f 2a |': case |'F':../*|
|00002930| 20 66 6f 72 6d 66 65 65 | 64 20 2a 2f 0a 09 09 20 | formfee|d */... |
|00002940| 20 20 20 63 20 3d 20 31 | 32 3b 20 62 72 65 61 6b | c = 1|2; break|
|00002950| 3b 0a 09 09 63 61 73 65 | 20 27 65 27 3a 20 63 61 |;...case| 'e': ca|
|00002960| 73 65 20 27 45 27 3a 09 | 09 2f 2a 20 65 73 63 61 |se 'E':.|./* esca|
|00002970| 70 65 20 2a 2f 0a 09 09 | 20 20 20 20 63 20 3d 20 |pe */...| c = |
|00002980| 32 37 3b 20 62 72 65 61 | 6b 3b 0a 09 09 63 61 73 |27; brea|k;...cas|
|00002990| 65 20 27 64 27 3a 20 63 | 61 73 65 20 27 44 27 3a |e 'd': c|ase 'D':|
|000029a0| 09 09 2f 2a 20 64 65 6c | 65 74 65 20 2a 2f 0a 09 |../* del|ete */..|
|000029b0| 09 20 20 20 20 63 20 3d | 31 32 37 3b 20 62 72 65 |. c =|127; bre|
|000029c0| 61 6b 3b 0a 09 09 63 61 | 73 65 20 27 73 27 3a 20 |ak;...ca|se 's': |
|000029d0| 63 61 73 65 20 27 53 27 | 3a 09 09 2f 2a 20 73 70 |case 'S'|:../* sp|
|000029e0| 61 63 65 20 2a 2f 0a 09 | 09 20 20 20 20 63 20 3d |ace */..|. c =|
|000029f0| 20 33 32 3b 20 62 72 65 | 61 6b 3b 0a 09 09 63 61 | 32; bre|ak;...ca|
|00002a00| 73 65 20 27 61 27 3a 20 | 63 61 73 65 20 27 41 27 |se 'a': |case 'A'|
|00002a10| 3a 09 09 2f 2a 20 61 6c | 61 72 6d 20 2a 2f 0a 09 |:../* al|arm */..|
|00002a20| 09 20 20 20 20 63 20 3d | 20 20 37 3b 20 62 72 65 |. c =| 7; bre|
|00002a30| 61 6b 3b 0a 09 09 63 61 | 73 65 20 27 5e 27 3a 09 |ak;...ca|se '^':.|
|00002a40| 09 09 2f 2a 20 63 6f 6e | 74 72 6f 6c 20 2a 2f 0a |../* con|trol */.|
|00002a50| 09 09 20 20 20 20 63 20 | 3d 20 2a 73 2b 2b 3b 0a |.. c |= *s++;.|
|00002a60| 09 09 20 20 20 20 63 20 | 3d 20 21 63 20 3f 20 27 |.. c |= !c ? '|
|00002a70| 5e 27 20 3a 20 63 20 3d | 3d 20 27 3f 27 20 3f 20 |^' : c =|= '?' ? |
|00002a80| 31 32 37 20 3a 20 63 26 | 33 31 3b 0a 09 09 20 20 |127 : c&|31;... |
|00002a90| 20 20 62 72 65 61 6b 3b | 0a 09 09 63 61 73 65 20 | break;|...case |
|00002aa0| 27 78 27 3a 20 63 61 73 | 65 20 27 58 27 3a 09 09 |'x': cas|e 'X':..|
|00002ab0| 2f 2a 20 68 65 78 61 64 | 65 63 69 6d 61 6c 20 2a |/* hexad|ecimal *|
|00002ac0| 2f 0a 09 09 20 20 20 20 | 66 6f 72 20 28 69 20 3d |/... |for (i =|
|00002ad0| 20 32 2c 20 6e 20 3d 20 | 30 3b 20 2d 2d 69 20 3e | 2, n = |0; --i >|
|00002ae0| 3d 20 30 3b 20 73 2b 2b | 29 20 7b 0a 09 09 09 63 |= 0; s++|) {....c|
|00002af0| 20 3d 20 2a 73 3b 0a 09 | 09 09 69 66 20 28 63 20 | = *s;..|..if (c |
|00002b00| 3e 3d 20 27 30 27 20 26 | 26 20 63 20 3c 3d 20 27 |>= '0' &|& c <= '|
|00002b10| 39 27 29 20 7b 0a 09 09 | 09 20 20 20 20 6e 20 3d |9') {...|. n =|
|00002b20| 20 28 6e 3c 3c 34 29 20 | 2d 20 27 30 27 20 2b 20 | (n<<4) |- '0' + |
|00002b30| 63 3b 0a 09 09 09 7d 20 | 65 6c 73 65 0a 09 09 09 |c;....} |else....|
|00002b40| 69 66 20 28 63 20 3e 3d | 20 27 61 27 20 26 26 20 |if (c >=| 'a' && |
|00002b50| 63 20 3c 3d 20 27 66 27 | 29 20 7b 0a 09 09 09 20 |c <= 'f'|) {.... |
|00002b60| 20 20 20 6e 20 3d 20 28 | 6e 3c 3c 34 29 20 2d 20 | n = (|n<<4) - |
|00002b70| 28 27 61 27 2d 31 30 29 | 20 2b 20 63 3b 0a 09 09 |('a'-10)| + c;...|
|00002b80| 09 7d 20 65 6c 73 65 0a | 09 09 09 69 66 20 28 63 |.} else.|...if (c|
|00002b90| 20 3e 3d 20 27 41 27 20 | 26 26 20 63 20 3c 3d 20 | >= 'A' |&& c <= |
|00002ba0| 27 46 27 29 20 7b 0a 09 | 09 09 20 20 20 20 6e 20 |'F') {..|.. n |
|00002bb0| 3d 20 28 6e 3c 3c 34 29 | 20 2d 20 28 27 41 27 2d |= (n<<4)| - ('A'-|
|00002bc0| 31 30 29 20 2b 20 63 3b | 0a 09 09 09 7d 20 65 6c |10) + c;|....} el|
|00002bd0| 73 65 20 7b 0a 09 09 09 | 20 20 20 20 62 72 65 61 |se {....| brea|
|00002be0| 6b 3b 0a 09 09 09 7d 0a | 09 09 20 20 20 20 7d 0a |k;....}.|.. }.|
|00002bf0| 09 09 20 20 20 20 63 20 | 3d 20 6e 26 32 35 35 3b |.. c |= n&255;|
|00002c00| 0a 09 09 20 20 20 20 62 | 72 65 61 6b 3b 0a 09 09 |... b|reak;...|
|00002c10| 63 61 73 65 20 27 6f 27 | 3a 20 63 61 73 65 20 27 |case 'o'|: case '|
|00002c20| 4f 27 3a 09 09 2f 2a 20 | 6f 63 74 61 6c 20 2a 2f |O':../* |octal */|
|00002c30| 0a 09 09 20 20 20 20 63 | 20 3d 20 2a 73 2b 2b 3b |... c| = *s++;|
|00002c40| 0a 09 09 20 20 20 20 69 | 66 20 28 63 20 3c 20 27 |... i|f (c < '|
|00002c50| 30 27 20 7c 7c 20 63 20 | 3e 20 27 37 27 29 20 7b |0' || c |> '7') {|
|00002c60| 0a 09 09 09 63 20 3d 20 | 73 5b 2d 31 5d 3b 0a 09 |....c = |s[-1];..|
|00002c70| 09 09 62 72 65 61 6b 3b | 0a 09 09 20 20 20 20 7d |..break;|... }|
|00002c80| 0a 09 09 63 61 73 65 20 | 27 30 27 3a 20 63 61 73 |...case |'0': cas|
|00002c90| 65 20 27 31 27 3a 20 63 | 61 73 65 20 27 32 27 3a |e '1': c|ase '2':|
|00002ca0| 20 63 61 73 65 20 27 33 | 27 3a 0a 09 09 63 61 73 | case '3|':...cas|
|00002cb0| 65 20 27 34 27 3a 20 63 | 61 73 65 20 27 35 27 3a |e '4': c|ase '5':|
|00002cc0| 20 63 61 73 65 20 27 36 | 27 3a 20 63 61 73 65 20 | case '6|': case |
|00002cd0| 27 37 27 3a 0a 09 09 20 | 20 20 20 6e 20 3d 20 63 |'7':... | n = c|
|00002ce0| 2d 27 30 27 3b 0a 09 09 | 20 20 20 20 66 6f 72 20 |-'0';...| for |
|00002cf0| 28 69 20 3d 20 32 3b 20 | 2d 2d 69 20 3e 3d 20 30 |(i = 2; |--i >= 0|
|00002d00| 20 26 26 20 28 63 20 3d | 20 2a 73 29 20 3e 3d 20 | && (c =| *s) >= |
|00002d10| 27 30 27 20 26 26 20 63 | 20 3c 3d 20 27 37 27 3b |'0' && c| <= '7';|
|00002d20| 20 73 2b 2b 29 20 7b 0a | 09 09 09 6e 20 3d 20 28 | s++) {.|...n = (|
|00002d30| 6e 3c 3c 33 29 20 2d 20 | 27 30 27 20 2b 20 63 3b |n<<3) - |'0' + c;|
|00002d40| 0a 09 09 20 20 20 20 7d | 0a 09 09 20 20 20 20 63 |... }|... c|
|00002d50| 20 3d 20 6e 26 32 35 35 | 3b 0a 09 09 20 20 20 20 | = n&255|;... |
|00002d60| 62 72 65 61 6b 3b 0a 09 | 09 64 65 66 61 75 6c 74 |break;..|.default|
|00002d70| 3a 0a 09 09 20 20 20 20 | 62 72 65 61 6b 3b 0a 09 |:... |break;..|
|00002d80| 20 20 20 20 7d 0a 09 20 | 20 20 20 69 66 20 28 70 | }.. | if (p|
|00002d90| 75 74 63 28 63 2c 20 6f | 75 74 70 75 74 29 20 3c |utc(c, o|utput) <|
|00002da0| 20 30 29 20 4f 75 74 70 | 75 74 45 72 72 6f 72 28 | 0) Outp|utError(|
|00002db0| 29 3b 0a 09 7d 0a 20 20 | 20 20 7d 0a 0a 0a 6d 61 |);..}. | }...ma|
|00002dc0| 69 6e 28 61 72 67 63 2c | 20 61 72 67 76 29 0a 20 |in(argc,| argv). |
|00002dd0| 20 20 20 69 6e 74 20 61 | 72 67 63 3b 0a 20 20 20 | int a|rgc;. |
|00002de0| 20 63 68 61 72 20 2a 2a | 61 72 67 76 3b 0a 20 20 | char **|argv;. |
|00002df0| 20 20 7b 0a 09 69 6e 74 | 20 65 73 63 61 70 65 5f | {..int| escape_|
|00002e00| 63 68 61 72 61 63 74 65 | 72 20 3d 20 2d 31 3b 09 |characte|r = -1;.|
|00002e10| 2f 2a 20 6e 6f 20 73 75 | 63 68 20 63 68 61 72 61 |/* no su|ch chara|
|00002e20| 63 74 65 72 20 2a 2f 0a | 09 69 6e 74 20 77 72 69 |cter */.|.int wri|
|00002e30| 74 65 5f 74 72 61 69 6c | 69 6e 67 5f 6e 65 77 6c |te_trail|ing_newl|
|00002e40| 69 6e 65 20 3d 20 31 3b | 09 2f 2a 20 64 6f 20 69 |ine = 1;|./* do i|
|00002e50| 74 20 62 79 20 64 65 66 | 61 75 6c 74 20 2a 2f 0a |t by def|ault */.|
|00002e60| 09 69 6e 74 20 6f 70 74 | 69 6f 6e 73 5f 64 6f 6e |.int opt|ions_don|
|00002e70| 65 20 3d 20 30 3b 09 09 | 2f 2a 20 6f 70 74 69 6f |e = 0;..|/* optio|
|00002e80| 6e 73 20 6e 6f 74 20 63 | 6f 6d 70 6c 65 74 65 64 |ns not c|ompleted|
|00002e90| 20 79 65 74 20 2a 2f 0a | 09 63 68 61 72 20 2a 73 | yet */.|.char *s|
|00002ea0| 65 70 61 72 61 74 6f 72 | 73 20 3d 20 22 20 22 3b |eparator|s = " ";|
|00002eb0| 09 09 2f 2a 20 6c 69 73 | 74 20 6f 66 20 73 65 70 |../* lis|t of sep|
|00002ec0| 61 72 61 74 6f 72 73 20 | 2a 2f 0a 09 63 68 61 72 |arators |*/..char|
|00002ed0| 20 2a 6e 65 78 74 5f 73 | 65 70 61 72 61 74 6f 72 | *next_s|eparator|
|00002ee0| 20 3d 20 22 22 3b 0a 09 | 69 6e 74 20 61 72 67 6e | = "";..|int argn|
|00002ef0| 6f 3b 09 09 09 2f 2a 20 | 61 72 67 75 6d 65 6e 74 |o;.../* |argument|
|00002f00| 20 6e 75 6d 62 65 72 20 | 2a 2f 0a 0a 09 69 66 20 | number |*/...if |
|00002f10| 28 61 72 67 63 20 3e 20 | 30 29 20 70 72 6f 67 72 |(argc > |0) progr|
|00002f20| 61 6d 5f 6e 61 6d 65 20 | 3d 20 61 72 67 76 5b 30 |am_name |= argv[0|
|00002f30| 5d 3b 0a 0a 09 66 6f 72 | 20 28 61 72 67 6e 6f 20 |];...for| (argno |
|00002f40| 3d 20 31 3b 20 61 72 67 | 6e 6f 20 3c 20 61 72 67 |= 1; arg|no < arg|
|00002f50| 63 20 26 26 20 21 6f 70 | 74 69 6f 6e 73 5f 64 6f |c && !op|tions_do|
|00002f60| 6e 65 3b 20 61 72 67 6e | 6f 2b 2b 29 20 7b 0a 09 |ne; argn|o++) {..|
|00002f70| 20 20 20 20 69 66 20 28 | 61 72 67 76 5b 61 72 67 | if (|argv[arg|
|00002f80| 6e 6f 5d 5b 30 5d 20 21 | 3d 20 27 2d 27 29 20 7b |no][0] !|= '-') {|
|00002f90| 0a 09 09 62 72 65 61 6b | 3b 0a 09 20 20 20 20 7d |...break|;.. }|
|00002fa0| 20 65 6c 73 65 0a 09 20 | 20 20 20 73 77 69 74 63 | else.. | switc|
|00002fb0| 68 20 28 61 72 67 76 5b | 61 72 67 6e 6f 5d 5b 31 |h (argv[|argno][1|
|00002fc0| 5d 29 20 7b 0a 09 09 63 | 61 73 65 20 27 6e 27 3a |]) {...c|ase 'n':|
|00002fd0| 20 63 61 73 65 20 27 4e | 27 3a 09 2f 2a 20 73 75 | case 'N|':./* su|
|00002fe0| 70 70 72 65 73 73 20 74 | 72 61 69 6c 69 6e 67 20 |ppress t|railing |
|00002ff0| 5c 6e 20 2a 2f 0a 09 09 | 20 20 20 20 77 72 69 74 |\n */...| writ|
|00003000| 65 5f 74 72 61 69 6c 69 | 6e 67 5f 6e 65 77 6c 69 |e_traili|ng_newli|
|00003010| 6e 65 20 3d 20 30 3b 0a | 09 09 20 20 20 20 62 72 |ne = 0;.|.. br|
|00003020| 65 61 6b 3b 0a 09 09 63 | 61 73 65 20 27 64 27 3a |eak;...c|ase 'd':|
|00003030| 20 63 61 73 65 20 27 44 | 27 3a 09 2f 2a 20 64 65 | case 'D|':./* de|
|00003040| 6c 69 6d 69 74 65 72 73 | 20 2a 2f 0a 09 09 20 20 |limiters| */... |
|00003050| 20 20 73 65 70 61 72 61 | 74 6f 72 73 20 3d 20 61 | separa|tors = a|
|00003060| 72 67 76 5b 61 72 67 6e | 6f 5d 5b 32 5d 20 3f 20 |rgv[argn|o][2] ? |
|00003070| 61 72 67 76 5b 61 72 67 | 6e 6f 5d 2b 32 20 3a 20 |argv[arg|no]+2 : |
|00003080| 22 5c 74 22 3b 0a 09 09 | 20 20 20 20 62 72 65 61 |"\t";...| brea|
|00003090| 6b 3b 0a 09 09 63 61 73 | 65 20 27 65 27 3a 20 63 |k;...cas|e 'e': c|
|000030a0| 61 73 65 20 27 45 27 3a | 09 2f 2a 20 65 73 63 61 |ase 'E':|./* esca|
|000030b0| 70 65 20 2a 2f 0a 09 09 | 20 20 20 20 65 73 63 61 |pe */...| esca|
|000030c0| 70 65 5f 63 68 61 72 61 | 63 74 65 72 20 3d 20 61 |pe_chara|cter = a|
|000030d0| 72 67 76 5b 61 72 67 6e | 6f 5d 5b 32 5d 3b 0a 09 |rgv[argn|o][2];..|
|000030e0| 09 20 20 20 20 69 66 20 | 28 21 65 73 63 61 70 65 |. if |(!escape|
|000030f0| 5f 63 68 61 72 61 63 74 | 65 72 29 20 65 73 63 61 |_charact|er) esca|
|00003100| 70 65 5f 63 68 61 72 61 | 63 74 65 72 20 3d 20 27 |pe_chara|cter = '|
|00003110| 5c 5c 27 3b 0a 09 09 20 | 20 20 20 62 72 65 61 6b |\\';... | break|
|00003120| 3b 0a 09 09 63 61 73 65 | 20 27 2d 27 3a 09 09 2f |;...case| '-':../|
|00003130| 2a 20 65 6e 64 20 6f 66 | 20 6f 70 74 69 6f 6e 73 |* end of| options|
|00003140| 20 2a 2f 0a 09 09 20 20 | 20 20 6f 70 74 69 6f 6e | */... | option|
|00003150| 73 5f 64 6f 6e 65 20 3d | 20 31 3b 0a 09 09 20 20 |s_done =| 1;... |
|00003160| 20 20 62 72 65 61 6b 3b | 0a 09 09 64 65 66 61 75 | break;|...defau|
|00003170| 6c 74 3a 0a 09 09 20 20 | 20 20 28 76 6f 69 64 29 |lt:... | (void)|
|00003180| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|00003190| 0a 09 09 09 22 25 73 3a | 20 75 6e 6b 6e 6f 77 6e |...."%s:| unknown|
|000031a0| 20 6f 70 74 69 6f 6e 3a | 20 25 73 5c 6e 22 2c 0a | option:| %s\n",.|
|000031b0| 09 09 09 70 72 6f 67 72 | 61 6d 5f 6e 61 6d 65 2c |...progr|am_name,|
|000031c0| 20 61 72 67 76 5b 61 72 | 67 6e 6f 5d 29 3b 0a 09 | argv[ar|gno]);..|
|000031d0| 09 20 20 20 20 28 76 6f | 69 64 29 20 66 70 72 69 |. (vo|id) fpri|
|000031e0| 6e 74 66 28 73 74 64 65 | 72 72 2c 0a 09 09 09 22 |ntf(stde|rr,...."|
|000031f0| 55 73 61 67 65 3a 20 6c | 69 74 20 5b 2d 6e 5d 20 |Usage: l|it [-n] |
|00003200| 5b 2d 64 6c 69 73 74 5d | 20 5b 2d 65 63 68 61 72 |[-dlist]| [-echar|
|00003210| 5d 20 5b 2d 2d 5d 20 61 | 72 67 2e 2e 2e 5c 6e 22 |] [--] a|rg...\n"|
|00003220| 29 3b 0a 09 09 20 20 20 | 20 65 78 69 74 28 31 29 |);... | exit(1)|
|00003230| 3b 0a 09 20 20 20 20 7d | 0a 09 7d 0a 09 77 68 69 |;.. }|..}..whi|
|00003240| 6c 65 20 28 61 72 67 6e | 6f 20 3c 20 61 72 67 63 |le (argn|o < argc|
|00003250| 29 20 7b 0a 09 20 20 20 | 20 44 69 73 70 6c 61 79 |) {.. | Display|
|00003260| 28 61 72 67 76 5b 61 72 | 67 6e 6f 5d 2c 20 65 73 |(argv[ar|gno], es|
|00003270| 63 61 70 65 5f 63 68 61 | 72 61 63 74 65 72 29 3b |cape_cha|racter);|
|00003280| 0a 09 20 20 20 20 61 72 | 67 6e 6f 2b 2b 3b 0a 09 |.. ar|gno++;..|
|00003290| 20 20 20 20 69 66 20 28 | 61 72 67 6e 6f 20 21 3d | if (|argno !=|
|000032a0| 20 61 72 67 63 29 20 7b | 0a 09 09 69 66 20 28 21 | argc) {|...if (!|
|000032b0| 2a 6e 65 78 74 5f 73 65 | 70 61 72 61 74 6f 72 29 |*next_se|parator)|
|000032c0| 20 6e 65 78 74 5f 73 65 | 70 61 72 61 74 6f 72 20 | next_se|parator |
|000032d0| 3d 20 73 65 70 61 72 61 | 74 6f 72 73 3b 0a 09 09 |= separa|tors;...|
|000032e0| 57 72 69 74 65 43 68 61 | 72 28 2a 6e 65 78 74 5f |WriteCha|r(*next_|
|000032f0| 73 65 70 61 72 61 74 6f | 72 2b 2b 29 3b 0a 09 20 |separato|r++);.. |
|00003300| 20 20 20 7d 0a 09 7d 0a | 09 69 66 20 28 77 72 69 | }..}.|.if (wri|
|00003310| 74 65 5f 74 72 61 69 6c | 69 6e 67 5f 6e 65 77 6c |te_trail|ing_newl|
|00003320| 69 6e 65 29 20 57 72 69 | 74 65 43 68 61 72 28 27 |ine) Wri|teChar('|
|00003330| 5c 6e 27 29 3b 0a 09 69 | 66 20 28 66 66 6c 75 73 |\n');..i|f (fflus|
|00003340| 68 28 73 74 64 6f 75 74 | 29 20 3c 20 30 29 20 4f |h(stdout|) < 0) O|
|00003350| 75 74 70 75 74 45 72 72 | 6f 72 28 29 3b 0a 20 20 |utputErr|or();. |
|00003360| 20 20 7d 0a 0a 0a 00 00 | 00 00 00 00 00 00 00 00 | }.....|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 0a 2e 42 20 5c 65 66 0a | 66 6f 72 6d 2d 66 65 65 |..B \ef.|form-fee|
|00003810| 64 0a 2e 54 50 0a 2e 42 | 20 5c 65 6e 0a 6e 65 77 |d..TP..B| \en.new|
|00003820| 2d 6c 69 6e 65 0a 2e 54 | 50 0a 2e 42 20 5c 65 72 |-line..T|P..B \er|
|00003830| 0a 63 61 72 72 69 61 67 | 65 20 72 65 74 75 72 6e |.carriag|e return|
|00003840| 0a 2e 54 50 0a 2e 42 20 | 5c 65 73 0a 73 70 61 63 |..TP..B |\es.spac|
|00003850| 65 0a 2e 54 50 0a 2e 42 | 20 5c 65 74 0a 74 61 62 |e..TP..B| \et.tab|
|00003860| 0a 2e 54 50 0a 2e 42 20 | 5c 65 76 0a 76 65 72 74 |..TP..B |\ev.vert|
|00003870| 69 63 61 6c 20 74 61 62 | 0a 2e 54 50 0a 2e 42 20 |ical tab|..TP..B |
|00003880| 5c 65 5c 65 0a 74 68 65 | 20 65 73 63 61 70 65 20 |\e\e.the| escape |
|00003890| 63 68 61 72 61 63 74 65 | 72 20 69 74 73 65 6c 66 |characte|r itself|
|000038a0| 0a 2e 54 50 0a 2e 42 49 | 20 5c 65 78 20 6e 0a 74 |..TP..BI| \ex n.t|
|000038b0| 68 65 20 38 2d 62 69 74 | 20 63 68 61 72 61 63 74 |he 8-bit| charact|
|000038c0| 65 72 20 77 68 6f 73 65 | 20 5c 73 2d 31 41 53 43 |er whose| \s-1ASC|
|000038d0| 49 49 5c 73 30 20 63 6f | 64 65 20 69 73 0a 74 68 |II\s0 co|de is.th|
|000038e0| 65 20 31 2d 20 6f 72 20 | 32 2d 64 69 67 69 74 20 |e 1- or |2-digit |
|000038f0| 68 65 78 61 64 65 63 69 | 6d 61 6c 20 6e 75 6d 62 |hexadeci|mal numb|
|00003900| 65 72 0a 2e 49 52 20 6e | 20 2e 0a 2e 54 50 0a 2e |er..IR n| ...TP..|
|00003910| 42 49 20 5c 65 6f 20 6e | 0a 74 68 65 20 38 2d 62 |BI \eo n|.the 8-b|
|00003920| 69 74 20 63 68 61 72 61 | 63 74 65 72 20 77 68 6f |it chara|cter who|
|00003930| 73 65 20 5c 73 2d 31 41 | 53 43 49 49 5c 73 30 20 |se \s-1A|SCII\s0 |
|00003940| 63 6f 64 65 20 69 73 0a | 74 68 65 20 31 2d 2c 20 |code is.|the 1-, |
|00003950| 32 2d 20 6f 72 20 33 2d | 64 69 67 69 74 20 6f 63 |2- or 3-|digit oc|
|00003960| 74 61 6c 20 6e 75 6d 62 | 65 72 0a 2e 49 52 20 6e |tal numb|er..IR n|
|00003970| 20 2c 0a 77 68 69 63 68 | 20 6e 65 65 64 20 6e 6f | ,.which| need no|
|00003980| 74 20 73 74 61 72 74 20 | 77 69 74 68 20 61 20 7a |t start |with a z|
|00003990| 65 72 6f 2e 0a 2e 54 50 | 0a 2e 42 49 20 5c 65 20 |ero...TP|..BI \e |
|000039a0| 6e 0a 74 68 65 20 38 2d | 62 69 74 20 63 68 61 72 |n.the 8-|bit char|
|000039b0| 61 63 74 65 72 20 77 68 | 6f 73 65 20 5c 73 2d 31 |acter wh|ose \s-1|
|000039c0| 41 53 43 49 49 5c 73 30 | 20 63 6f 64 65 20 69 73 |ASCII\s0| code is|
|000039d0| 0a 74 68 65 20 31 2d 2c | 20 32 2d 20 6f 72 20 33 |.the 1-,| 2- or 3|
|000039e0| 2d 64 69 67 69 74 20 6f | 63 74 61 6c 20 6e 75 6d |-digit o|ctal num|
|000039f0| 62 65 72 0a 2e 49 52 20 | 6e 20 2c 0a 77 68 69 63 |ber..IR |n ,.whic|
|00003a00| 68 20 6e 65 65 64 20 6e | 6f 74 20 73 74 61 72 74 |h need n|ot start|
|00003a10| 20 77 69 74 68 20 61 20 | 7a 65 72 6f 2e 0a 2e 52 | with a |zero...R|
|00003a20| 45 0a 2e 53 48 20 45 58 | 41 4d 50 4c 45 53 0a 2e |E..SH EX|AMPLES..|
|00003a30| 54 50 20 31 35 6d 0a 6c | 69 74 20 5c 7c 5c 2d 6e |TP 15m.l|it \|\-n|
|00003a40| 20 22 45 6e 74 65 72 20 | 63 6f 75 6e 74 3a 20 22 | "Enter |count: "|
|00003a50| 20 3b 20 72 65 61 64 20 | 63 6f 75 6e 74 0a 54 6f | ; read |count.To|
|00003a60| 20 6f 62 74 61 69 6e 20 | 70 72 6f 6d 70 74 65 64 | obtain |prompted|
|00003a70| 20 69 6e 70 75 74 20 69 | 6e 20 74 68 65 20 42 6f | input i|n the Bo|
|00003a80| 75 72 6e 65 20 73 68 65 | 6c 6c 2e 0a 2e 54 50 0a |urne she|ll...TP.|
|00003a90| 6c 69 74 20 2d 6e 20 66 | 6f 6f 20 3b 20 6c 69 74 |lit -n f|oo ; lit|
|00003aa0| 20 2d 6e 20 62 61 7a 20 | 3b 20 6c 69 74 20 75 67 | -n baz |; lit ug|
|00003ab0| 68 0a 65 63 68 6f 20 22 | 66 6f 6f 62 61 7a 75 67 |h.echo "|foobazug|
|00003ac0| 68 22 20 74 6f 20 74 68 | 65 20 74 65 72 6d 69 6e |h" to th|e termin|
|00003ad0| 61 6c 20 77 69 74 68 20 | 6e 6f 20 73 65 70 61 72 |al with |no separ|
|00003ae0| 61 74 6f 72 73 2e 0a 2e | 54 50 0a 6c 69 74 20 5c |ators...|TP.lit \|
|00003af0| 7c 5c 2d 5c 2d 20 5c 2d | 6e 20 5c 2d 65 20 5c 2d ||\-\- \-|n \-e \-|
|00003b00| 64 0a 65 63 68 6f 20 22 | 2d 6e 20 2d 65 20 2d 64 |d.echo "|-n -e -d|
|00003b10| 22 20 74 6f 20 74 68 65 | 20 73 74 61 6e 64 61 72 |" to the| standar|
|00003b20| 64 20 6f 75 74 70 75 74 | 2e 0a 2e 54 50 0a 6c 69 |d output|...TP.li|
|00003b30| 74 20 5c 7c 5c 2d 65 40 | 20 22 61 40 6e 62 40 6e |t \|\-e@| "a@nb@n|
|00003b40| 63 22 20 5c 7c 5c 28 62 | 76 5c 7c 20 70 72 6f 67 |c" \|\(b|v\| prog|
|00003b50| 72 61 6d 0a 72 75 6e 20 | 70 72 6f 67 72 61 6d 20 |ram.run |program |
|00003b60| 77 69 74 68 20 74 68 72 | 65 65 20 6c 69 6e 65 73 |with thr|ee lines|
|00003b70| 20 6f 66 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 | of stan|dard inp|
|00003b80| 75 74 2e 0a 2e 54 50 0a | 76 61 72 69 61 62 6c 65 |ut...TP.|variable|
|00003b90| 3d 60 6c 69 74 20 5c 2d | 64 3a 20 5c 2d 5c 2d 20 |=`lit \-|d: \-\- |
|00003ba0| 2a 66 6f 6f 2a 60 0a 74 | 6f 20 61 73 73 69 67 6e |*foo*`.t|o assign|
|00003bb0| 20 74 6f 20 74 68 65 20 | 73 68 65 6c 6c 20 76 61 | to the |shell va|
|00003bc0| 72 69 61 62 6c 65 20 22 | 76 61 72 69 61 62 6c 65 |riable "|variable|
|00003bd0| 22 20 61 20 63 6f 6c 6f | 6e 2d 73 65 70 61 72 61 |" a colo|n-separa|
|00003be0| 74 65 64 0a 6c 69 73 74 | 20 6f 66 20 66 69 6c 65 |ted.list| of file|
|00003bf0| 20 6e 61 6d 65 73 20 6d | 61 74 63 68 69 6e 67 20 | names m|atching |
|00003c00| 2a 66 6f 6f 2a 20 2e 20 | 20 54 68 65 20 5c 2d 5c |*foo* . | The \-\|
|00003c10| 2d 20 69 73 20 6e 65 65 | 64 65 64 20 69 6e 0a 63 |- is nee|ded in.c|
|00003c20| 61 73 65 20 74 68 65 20 | 66 69 6c 65 20 73 75 63 |ase the |file suc|
|00003c30| 68 20 66 69 6c 65 20 6e | 61 6d 65 20 73 74 61 72 |h file n|ame star|
|00003c40| 74 73 20 77 69 74 68 20 | 61 20 68 79 70 68 65 6e |ts with |a hyphen|
|00003c50| 2e 20 20 4e 6f 74 65 20 | 74 68 61 74 0a 79 6f 75 |. Note |that.you|
|00003c60| 20 63 61 6e 6e 6f 74 20 | 64 6f 20 74 68 69 73 20 | cannot |do this |
|00003c70| 77 69 74 68 20 74 68 65 | 20 53 79 73 74 65 6d 20 |with the| System |
|00003c80| 56 0a 2e 49 20 65 63 68 | 6f 0a 63 6f 6d 6d 61 6e |V..I ech|o.comman|
|00003c90| 64 2c 20 62 65 63 61 75 | 73 65 20 74 68 65 20 66 |d, becau|se the f|
|00003ca0| 69 6c 65 20 6e 61 6d 65 | 73 20 6d 69 67 68 74 20 |ile name|s might |
|00003cb0| 63 6f 6e 74 61 69 6e 20 | 5c 65 20 43 68 61 72 61 |contain |\e Chara|
|00003cc0| 63 74 65 72 73 2c 20 77 | 68 69 63 68 20 0a 2e 49 |cters, w|hich ..I|
|00003cd0| 20 65 63 68 6f 0a 77 6f | 75 6c 64 20 28 6d 69 73 | echo.wo|uld (mis|
|00003ce0| 2d 29 69 6e 74 65 72 70 | 72 65 74 2e 0a 2e 53 48 |-)interp|ret...SH|
|00003cf0| 20 53 45 45 20 41 4c 53 | 4f 0a 73 68 28 31 29 2c | SEE ALS|O.sh(1),|
|00003d00| 20 65 63 68 6f 28 31 29 | 0a 00 00 00 00 00 00 00 | echo(1)|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 6c 69 74 2f 6c 69 74 2e | 63 00 00 00 00 00 00 00 |lit/lit.|c.......|
|00003e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003e70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003e80| 20 20 31 31 35 34 36 20 | 20 34 34 30 34 31 30 32 | 11546 | 4404102|
|00003e90| 34 35 31 20 20 20 35 36 | 34 36 00 20 00 00 00 00 |451 56|46. ....|
|00003ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+