|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: g
Length: 6932 (0x1b14)
Names: »grep.1«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat1/grep.1«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆ 0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e ┆ u_ a_ l User Comman┆ 0x0040…0060 64 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 65 70 28 31 29 0a 0a 0a 0a ┆ds grep(1) ┆ 0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆ 0x0080…00a0 20 20 67 72 65 70 2c 20 65 67 72 65 70 2c 20 66 67 72 65 70 20 2d 20 73 65 61 72 63 68 20 61 20 ┆ grep, egrep, fgrep - search a ┆ 0x00a0…00c0 66 69 6c 65 20 66 6f 72 20 61 20 70 61 74 74 65 72 6e 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 ┆file for a pattern S S S SY Y Y┆ 0x00c0…00e0 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 ┆ YN N N NT T T TA A A AX X X X ┆ 0x00e0…0100 20 20 20 20 67 08 67 08 67 08 67 72 08 72 08 72 08 72 65 08 65 08 65 08 65 70 08 70 08 70 08 70 ┆ g g g gr r r re e e ep p p p┆ 0x0100…0120 20 5b 20 6f 70 74 69 6f 6e 20 5d 20 2e 2e 2e 20 20 65 78 70 72 65 73 73 69 6f 6e 20 5b 20 66 69 ┆ [ option ] ... expression [ fi┆ 0x0120…0140 6c 65 20 5d 20 2e 2e 2e 0a 0a 20 20 20 20 20 65 08 65 08 65 08 65 67 08 67 08 67 08 67 72 08 72 ┆le ] ... e e e eg g g gr r┆ 0x0140…0160 08 72 08 72 65 08 65 08 65 08 65 70 08 70 08 70 08 70 20 5b 20 6f 70 74 69 6f 6e 20 5d 20 2e 2e ┆ r re e e ep p p p [ option ] ..┆ 0x0160…0180 2e 20 20 5b 20 65 78 70 72 65 73 73 69 6f 6e 20 5d 20 5b 20 66 69 6c 65 20 5d 20 2e 2e 2e 0a 0a ┆. [ expression ] [ file ] ... ┆ 0x0180…01a0 20 20 20 20 20 66 08 66 08 66 08 66 67 08 67 08 67 08 67 72 08 72 08 72 08 72 65 08 65 08 65 08 ┆ f f f fg g g gr r r re e e ┆ 0x01a0…01c0 65 70 08 70 08 70 08 70 20 5b 20 6f 70 74 69 6f 6e 20 5d 20 2e 2e 2e 20 20 5b 20 73 74 72 69 6e ┆ep p p p [ option ] ... [ strin┆ 0x01c0…01e0 67 73 20 5d 20 5b 20 66 69 6c 65 20 5d 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 ┆gs ] [ file ] D D D DE E E ES S┆ 0x01e0…0200 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 ┆ S SC C C CR R R RI I I IP P P P┆ 0x0200…0220 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 ┆T T T TI I I IO O O ON N N N ┆ 0x0220…0240 20 20 43 6f 6d 6d 61 6e 64 73 20 6f 66 20 74 68 65 20 5f 08 67 5f 08 72 5f 08 65 5f 08 70 20 66 ┆ Commands of the _ g_ r_ e_ p f┆ 0x0240…0260 61 6d 69 6c 79 20 73 65 61 72 63 68 20 74 68 65 20 69 6e 70 75 74 20 5f 08 66 5f 08 69 5f 08 6c ┆amily search the input _ f_ i_ l┆ 0x0260…0280 5f 08 65 5f 08 73 20 28 73 74 61 6e 64 61 72 64 0a 20 20 20 20 20 69 6e 70 75 74 20 64 65 66 61 ┆_ e_ s (standard input defa┆ 0x0280…02a0 75 6c 74 29 20 66 6f 72 20 6c 69 6e 65 73 20 6d 61 74 63 68 69 6e 67 20 61 20 70 61 74 74 65 72 ┆ult) for lines matching a patter┆ 0x02a0…02c0 6e 2e 20 20 4e 6f 72 6d 61 6c 6c 79 2c 20 65 61 63 68 0a 20 20 20 20 20 6c 69 6e 65 20 66 6f 75 ┆n. Normally, each line fou┆ 0x02c0…02e0 6e 64 20 69 73 20 63 6f 70 69 65 64 20 74 6f 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 6f 75 74 ┆nd is copied to the standard out┆ 0x02e0…0300 70 75 74 2e 20 20 5f 08 67 5f 08 72 5f 08 65 5f 08 70 20 70 61 74 74 65 72 6e 73 0a 20 20 20 20 ┆put. _ g_ r_ e_ p patterns ┆ 0x0300…0320 20 61 72 65 20 6c 69 6d 69 74 65 64 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 73 ┆ are limited regular expressions┆ 0x0320…0340 20 69 6e 20 74 68 65 20 73 74 79 6c 65 20 6f 66 20 5f 08 65 5f 08 78 28 31 29 3b 20 69 74 0a 20 ┆ in the style of _ e_ x(1); it ┆ 0x0340…0360 20 20 20 20 75 73 65 73 20 61 20 63 6f 6d 70 61 63 74 20 6e 6f 6e 64 65 74 65 72 6d 69 6e 69 73 ┆ uses a compact nondeterminis┆ 0x0360…0380 74 69 63 20 61 6c 67 6f 72 69 74 68 6d 2e 20 20 5f 08 65 5f 08 67 5f 08 72 5f 08 65 5f 08 70 20 ┆tic algorithm. _ e_ g_ r_ e_ p ┆ 0x0380…03a0 70 61 74 74 65 72 6e 73 0a 20 20 20 20 20 61 72 65 20 66 75 6c 6c 20 72 65 67 75 6c 61 72 20 65 ┆patterns are full regular e┆ 0x03a0…03c0 78 70 72 65 73 73 69 6f 6e 73 3b 20 69 74 20 75 73 65 73 20 61 20 66 61 73 74 20 64 65 74 65 72 ┆xpressions; it uses a fast deter┆ 0x03c0…03e0 6d 69 6e 69 73 74 69 63 0a 20 20 20 20 20 61 6c 67 6f 72 69 74 68 6d 20 74 68 61 74 20 73 6f 6d ┆ministic algorithm that som┆ 0x03e0…0400 65 74 69 6d 65 73 20 6e 65 65 64 73 20 65 78 70 6f 6e 65 6e 74 69 61 6c 20 73 70 61 63 65 2e 20 ┆etimes needs exponential space. ┆ 0x0400…0420 20 5f 08 66 5f 08 67 5f 08 72 5f 08 65 5f 08 70 0a 20 20 20 20 20 70 61 74 74 65 72 6e 73 20 61 ┆ _ f_ g_ r_ e_ p patterns a┆ 0x0420…0440 72 65 20 66 69 78 65 64 20 73 74 72 69 6e 67 73 3b 20 69 74 20 69 73 20 66 61 73 74 20 61 6e 64 ┆re fixed strings; it is fast and┆ 0x0440…0460 20 63 6f 6d 70 61 63 74 2e 20 20 54 68 65 0a 20 20 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20 6f 70 ┆ compact. The following op┆ 0x0460…0480 74 69 6f 6e 73 20 61 72 65 20 72 65 63 6f 67 6e 69 7a 65 64 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 ┆tions are recognized. - - ┆ 0x0480…04a0 2d 08 2d 76 08 76 08 76 08 76 20 20 20 41 6c 6c 20 6c 69 6e 65 73 20 62 75 74 20 74 68 6f 73 65 ┆- -v v v v All lines but those┆ 0x04a0…04c0 20 6d 61 74 63 68 69 6e 67 20 61 72 65 20 70 72 69 6e 74 65 64 2e 0a 0a 20 20 20 20 20 2d 08 2d ┆ matching are printed. - -┆ 0x04c0…04e0 08 2d 08 2d 78 08 78 08 78 08 78 20 20 20 28 45 78 61 63 74 29 20 6f 6e 6c 79 20 6c 69 6e 65 73 ┆ - -x x x x (Exact) only lines┆ 0x04e0…0500 20 6d 61 74 63 68 65 64 20 69 6e 20 74 68 65 69 72 20 65 6e 74 69 72 65 74 79 20 61 72 65 0a 20 ┆ matched in their entirety are ┆ 0x0500…0520 20 20 20 20 20 20 20 20 20 70 72 69 6e 74 65 64 20 28 5f 08 66 5f 08 67 5f 08 72 5f 08 65 5f 08 ┆ printed (_ f_ g_ r_ e_ ┆ 0x0520…0540 70 20 6f 6e 6c 79 29 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08 2d 63 08 63 08 63 08 63 20 20 20 ┆p only). - - - -c c c c ┆ 0x0540…0560 4f 6e 6c 79 20 61 20 63 6f 75 6e 74 20 6f 66 20 6d 61 74 63 68 69 6e 67 20 6c 69 6e 65 73 20 69 ┆Only a count of matching lines i┆ 0x0560…0580 73 20 70 72 69 6e 74 65 64 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08 2d 6c 08 6c 08 6c 08 6c 20 ┆s printed. - - - -l l l l ┆ 0x0580…05a0 20 20 54 68 65 20 6e 61 6d 65 73 20 6f 66 20 66 69 6c 65 73 20 77 69 74 68 20 6d 61 74 63 68 69 ┆ The names of files with matchi┆ 0x05a0…05c0 6e 67 20 6c 69 6e 65 73 20 61 72 65 20 6c 69 73 74 65 64 0a 20 20 20 20 20 20 20 20 20 20 28 6f ┆ng lines are listed (o┆ 0x05c0…05e0 6e 63 65 29 20 73 65 70 61 72 61 74 65 64 20 62 79 20 6e 65 77 6c 69 6e 65 73 2e 0a 0a 20 20 20 ┆nce) separated by newlines. ┆ 0x05e0…0600 20 20 2d 08 2d 08 2d 08 2d 6e 08 6e 08 6e 08 6e 20 20 20 45 61 63 68 20 6c 69 6e 65 20 69 73 20 ┆ - - - -n n n n Each line is ┆ 0x0600…0620 70 72 65 63 65 64 65 64 20 62 79 20 69 74 73 20 72 65 6c 61 74 69 76 65 20 6c 69 6e 65 20 6e 75 ┆preceded by its relative line nu┆ 0x0620…0640 6d 62 65 72 20 69 6e 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 66 69 6c 65 2e 0a 0a 20 20 20 ┆mber in the file. ┆ 0x0640…0660 20 20 2d 08 2d 08 2d 08 2d 62 08 62 08 62 08 62 20 20 20 45 61 63 68 20 6c 69 6e 65 20 69 73 20 ┆ - - - -b b b b Each line is ┆ 0x0660…0680 70 72 65 63 65 64 65 64 20 62 79 20 74 68 65 20 62 6c 6f 63 6b 20 6e 75 6d 62 65 72 20 6f 6e 20 ┆preceded by the block number on ┆ 0x0680…06a0 77 68 69 63 68 20 69 74 0a 20 20 20 20 20 20 20 20 20 20 77 61 73 20 66 6f 75 6e 64 2e 20 20 54 ┆which it was found. T┆ 0x06a0…06c0 68 69 73 20 69 73 20 73 6f 6d 65 74 69 6d 65 73 20 75 73 65 66 75 6c 20 69 6e 20 6c 6f 63 61 74 ┆his is sometimes useful in locat┆ 0x06c0…06e0 69 6e 67 20 64 69 73 6b 0a 20 20 20 20 20 20 20 20 20 20 62 6c 6f 63 6b 20 6e 75 6d 62 65 72 73 ┆ing disk block numbers┆ 0x06e0…0700 20 62 79 20 63 6f 6e 74 65 78 74 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08 2d 68 08 68 08 68 08 ┆ by context. - - - -h h h ┆ 0x0700…0720 68 20 20 20 53 75 70 70 72 65 73 73 65 73 20 70 72 69 6e 74 69 6e 67 20 6f 66 20 66 69 6c 65 20 ┆h Suppresses printing of file ┆ 0x0720…0740 6e 61 6d 65 73 20 77 68 65 6e 20 74 68 65 72 65 20 69 73 20 6d 6f 72 65 0a 20 20 20 20 20 20 20 ┆names when there is more ┆ 0x0740…0760 20 20 20 74 68 61 6e 20 6f 6e 65 20 69 6e 70 75 74 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 2d 08 ┆ than one input file. - ┆ 0x0760…0780 2d 08 2d 08 2d 69 08 69 08 69 08 69 20 20 20 54 68 65 20 63 61 73 65 20 6f 66 20 6c 65 74 74 65 ┆- - -i i i i The case of lette┆ 0x0780…07a0 72 73 20 69 73 20 69 67 6e 6f 72 65 64 20 69 6e 20 6d 61 6b 69 6e 67 20 63 6f 6d 70 61 72 69 73 ┆rs is ignored in making comparis┆ 0x07a0…07c0 6f 6e 73 20 2d 0a 20 20 20 20 20 20 20 20 20 20 74 68 61 74 20 69 73 2c 20 75 70 70 65 72 20 61 ┆ons - that is, upper a┆ 0x07c0…07e0 6e 64 20 6c 6f 77 65 72 20 63 61 73 65 20 61 72 65 20 63 6f 6e 73 69 64 65 72 65 64 20 69 64 65 ┆nd lower case are considered ide┆ 0x07e0…0800 6e 74 69 63 61 6c 2e 0a 20 20 20 20 20 20 20 20 20 20 54 68 69 73 20 61 70 70 6c 69 65 73 20 74 ┆ntical. This applies t┆ 0x0800…0820 6f 20 5f 08 67 5f 08 72 5f 08 65 5f 08 70 20 61 6e 64 20 5f 08 66 5f 08 67 5f 08 72 5f 08 65 5f ┆o _ g_ r_ e_ p and _ f_ g_ r_ e_┆ 0x0820…0840 08 70 20 6f 6e 6c 79 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08 2d 73 08 73 08 73 08 73 20 20 20 ┆ p only. - - - -s s s s ┆ 0x0840…0860 53 69 6c 65 6e 74 20 6d 6f 64 65 2e 20 20 4e 6f 74 68 69 6e 67 20 69 73 20 70 72 69 6e 74 65 64 ┆Silent mode. Nothing is printed┆ 0x0860…0880 20 28 65 78 63 65 70 74 20 65 72 72 6f 72 20 6d 65 73 2d 0a 20 20 20 20 20 20 20 20 20 20 73 61 ┆ (except error mes- sa┆ 0x0880…08a0 67 65 73 29 2e 20 20 54 68 69 73 20 69 73 20 75 73 65 66 75 6c 20 66 6f 72 20 63 68 65 63 6b 69 ┆ges). This is useful for checki┆ 0x08a0…08c0 6e 67 20 74 68 65 20 65 72 72 6f 72 20 73 74 61 74 75 73 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d ┆ng the error status. - - -┆ 0x08c0…08e0 08 2d 77 08 77 08 77 08 77 20 20 20 54 68 65 20 65 78 70 72 65 73 73 69 6f 6e 20 69 73 20 73 65 ┆ -w w w w The expression is se┆ 0x08e0…0900 61 72 63 68 65 64 20 66 6f 72 20 61 73 20 61 20 77 6f 72 64 20 28 61 73 20 69 66 20 73 75 72 2d ┆arched for as a word (as if sur-┆ 0x0900…0920 0a 20 20 20 20 20 20 20 20 20 20 72 6f 75 6e 64 65 64 20 62 79 20 60 5c 3c 27 20 61 6e 64 20 60 ┆ rounded by `\<' and `┆ 0x0920…0940 5c 3e 27 2c 20 73 65 65 20 5f 08 65 5f 08 78 28 31 29 2e 29 20 28 5f 08 67 5f 08 72 5f 08 65 5f ┆\>', see _ e_ x(1).) (_ g_ r_ e_┆ 0x0940…0960 08 70 20 6f 6e 6c 79 29 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08 2d 65 08 65 08 65 08 65 20 5f 08 ┆ p only) - - - -e e e e _ ┆ 0x0960…0980 65 5f 08 78 5f 08 70 5f 08 72 5f 08 65 5f 08 73 5f 08 73 5f 08 69 5f 08 6f 5f 08 6e 0a 20 20 20 ┆e_ x_ p_ r_ e_ s_ s_ i_ o_ n ┆ 0x0980…09a0 20 20 20 20 20 20 20 53 61 6d 65 20 61 73 20 61 20 73 69 6d 70 6c 65 20 5f 08 65 5f 08 78 5f 08 ┆ Same as a simple _ e_ x_ ┆ 0x09a0…09c0 70 5f 08 72 5f 08 65 5f 08 73 5f 08 73 5f 08 69 5f 08 6f 5f 08 6e 20 61 72 67 75 6d 65 6e 74 2c ┆p_ r_ e_ s_ s_ i_ o_ n argument,┆ 0x09c0…09e0 20 62 75 74 20 75 73 65 66 75 6c 20 77 68 65 6e 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 5f ┆ but useful when the _┆ 0x09e0…0a00 08 65 5f 08 78 5f 08 70 5f 08 72 5f 08 65 5f 08 73 5f 08 73 5f 08 69 5f 08 6f 5f 08 6e 20 62 65 ┆ e_ x_ p_ r_ e_ s_ s_ i_ o_ n be┆ 0x0a00…0a20 67 69 6e 73 20 77 69 74 68 20 61 20 2d 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08 2d 66 08 66 08 ┆gins with a -. - - - -f f ┆ 0x0a20…0a40 66 08 66 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 0a 20 20 20 20 20 20 20 20 20 20 54 68 65 20 72 ┆f f _ f_ i_ l_ e The r┆ 0x0a40…0a60 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 20 28 5f 08 65 5f 08 67 5f 08 72 5f 08 65 5f ┆egular expression (_ e_ g_ r_ e_┆ 0x0a60…0a80 08 70 29 20 6f 72 20 73 74 72 69 6e 67 20 6c 69 73 74 20 28 5f 08 66 5f 08 67 5f 08 72 5f 08 65 ┆ p) or string list (_ f_ g_ r_ e┆ 0x0a80…0aa0 5f 08 70 29 0a 20 20 20 20 20 20 20 20 20 20 69 73 20 74 61 6b 65 6e 20 66 72 6f 6d 20 74 68 65 ┆_ p) is taken from the┆ 0x0aa0…0ac0 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 2e 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 49 6e 20 61 6c ┆ _ f_ i_ l_ e. In al┆ 0x0ac0…0ae0 6c 20 63 61 73 65 73 20 74 68 65 20 66 69 6c 65 20 6e 61 6d 65 20 69 73 20 73 68 6f 77 6e 20 69 ┆l cases the file name is shown i┆ 0x0ae0…0b00 66 20 74 68 65 72 65 20 69 73 20 6d 6f 72 65 20 74 68 61 6e 0a 20 20 20 20 20 6f 6e 65 20 69 6e ┆f there is more than one in┆ 0x0b00…0b20 70 75 74 20 66 69 6c 65 20 28 65 78 63 65 70 74 20 77 68 65 6e 20 74 68 65 20 2d 08 2d 08 2d 08 ┆put file (except when the - - - ┆ 0x0b20…0b40 2d 68 08 68 08 68 08 68 20 6f 70 74 69 6f 6e 20 69 73 20 75 73 65 64 29 2e 20 20 43 61 72 65 0a ┆-h h h h option is used). Care ┆ 0x0b40…0b60 20 20 20 20 20 73 68 6f 75 6c 64 20 62 65 20 74 61 6b 65 6e 20 77 68 65 6e 20 75 73 69 6e 67 20 ┆ should be taken when using ┆ 0x0b60…0b80 74 68 65 20 63 68 61 72 61 63 74 65 72 73 20 24 20 2a 20 5b 20 5e 20 7c 20 28 20 29 20 61 6e 64 ┆the characters $ * [ ^ | ( ) and┆ 0x0b80…0ba0 0a 20 20 20 20 20 5c 20 69 6e 20 74 68 65 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 5f 08 65 5f 08 ┆ \ in the _ e_ x_ p_ r_ e_ ┆ 0x0ba0…0bc0 73 5f 08 73 5f 08 69 5f 08 6f 5f 08 6e 20 61 73 20 74 68 65 79 20 61 72 65 20 61 6c 73 6f 20 6d ┆s_ s_ i_ o_ n as they are also m┆ 0x0bc0…0be0 65 61 6e 69 6e 67 66 75 6c 20 74 6f 20 74 68 65 0a 20 20 20 20 20 53 68 65 6c 6c 2e 20 20 49 74 ┆eaningful to the Shell. It┆ 0x0be0…0c00 20 69 73 20 73 61 66 65 73 74 20 74 6f 20 65 6e 63 6c 6f 73 65 20 74 68 65 20 65 6e 74 69 72 65 ┆ is safest to enclose the entire┆ 0x0c00…0c20 20 5f 08 65 5f 08 78 5f 08 70 5f 08 72 5f 08 65 5f 08 73 5f 08 73 5f 08 69 5f 08 6f 5f 08 6e 20 ┆ _ e_ x_ p_ r_ e_ s_ s_ i_ o_ n ┆ 0x0c20…0c40 61 72 67 75 2d 0a 20 20 20 20 20 6d 65 6e 74 20 69 6e 20 73 69 6e 67 6c 65 20 71 75 6f 74 65 73 ┆argu- ment in single quotes┆ 0x0c40…0c60 20 27 20 27 2e 0a 0a 20 20 20 20 20 5f 08 66 5f 08 67 5f 08 72 5f 08 65 5f 08 70 20 73 65 61 72 ┆ ' '. _ f_ g_ r_ e_ p sear┆ 0x0c60…0c80 63 68 65 73 20 66 6f 72 20 6c 69 6e 65 73 20 74 68 61 74 20 63 6f 6e 74 61 69 6e 20 6f 6e 65 20 ┆ches for lines that contain one ┆ 0x0c80…0ca0 6f 66 20 74 68 65 20 28 6e 65 77 6c 69 6e 65 2d 0a 20 20 20 20 20 73 65 70 61 72 61 74 65 64 29 ┆of the (newline- separated)┆ 0x0ca0…0cc0 20 5f 08 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 67 5f 08 73 2e 0a 0a 20 20 20 20 20 5f 08 ┆ _ s_ t_ r_ i_ n_ g_ s. _ ┆ 0x0cc0…0ce0 65 5f 08 67 5f 08 72 5f 08 65 5f 08 70 20 61 63 63 65 70 74 73 20 65 78 74 65 6e 64 65 64 20 72 ┆e_ g_ r_ e_ p accepts extended r┆ 0x0ce0…0d00 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 73 2e 20 20 49 6e 20 74 68 65 20 66 6f 6c 6c ┆egular expressions. In the foll┆ 0x0d00…0d20 6f 77 2d 0a 20 20 20 20 20 69 6e 67 20 64 65 73 63 72 69 70 74 69 6f 6e 20 60 63 68 61 72 61 63 ┆ow- ing description `charac┆ 0x0d20…0d40 74 65 72 27 20 65 78 63 6c 75 64 65 73 20 6e 65 77 6c 69 6e 65 3a 0a 0a 20 20 20 20 20 20 20 20 ┆ter' excludes newline: ┆ 0x0d40…0d60 20 20 41 20 5c 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 61 20 73 69 6e 67 6c 65 20 63 68 61 72 61 ┆ A \ followed by a single chara┆ 0x0d60…0d80 63 74 65 72 20 6f 74 68 65 72 20 74 68 61 6e 20 6e 65 77 6c 69 6e 65 0a 20 20 20 20 20 20 20 20 ┆cter other than newline ┆ 0x0d80…0da0 20 20 6d 61 74 63 68 65 73 20 74 68 61 74 20 63 68 61 72 61 63 74 65 72 2e 0a 0a 20 20 20 20 20 ┆ matches that character. ┆ 0x0da0…0dc0 20 20 20 20 20 54 68 65 20 63 68 61 72 61 63 74 65 72 20 5e 20 6d 61 74 63 68 65 73 20 74 68 65 ┆ The character ^ matches the┆ 0x0dc0…0de0 20 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 61 20 6c 69 6e 65 2e 0a 0a 20 20 20 20 20 20 20 20 20 ┆ beginning of a line. ┆ 0x0de0…0e00 20 54 68 65 20 63 68 61 72 61 63 74 65 72 20 24 20 6d 61 74 63 68 65 73 20 74 68 65 20 65 6e 64 ┆ The character $ matches the end┆ 0x0e00…0e20 20 6f 66 20 61 20 6c 69 6e 65 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 41 20 2e 08 2e 08 2e 08 2e ┆ of a line. A . . . .┆ 0x0e20…0e40 20 28 70 65 72 69 6f 64 29 20 6d 61 74 63 68 65 73 20 61 6e 79 20 63 68 61 72 61 63 74 65 72 2e ┆ (period) matches any character.┆ 0x0e40…0e60 0a 0a 20 20 20 20 20 20 20 20 20 20 41 20 73 69 6e 67 6c 65 20 63 68 61 72 61 63 74 65 72 20 6e ┆ A single character n┆ 0x0e60…0e80 6f 74 20 6f 74 68 65 72 77 69 73 65 20 65 6e 64 6f 77 65 64 20 77 69 74 68 20 73 70 65 63 69 61 ┆ot otherwise endowed with specia┆ 0x0e80…0ea0 6c 0a 20 20 20 20 20 20 20 20 20 20 6d 65 61 6e 69 6e 67 20 6d 61 74 63 68 65 73 20 74 68 61 74 ┆l meaning matches that┆ 0x0ea0…0ec0 20 63 68 61 72 61 63 74 65 72 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 41 20 73 74 72 69 6e 67 20 ┆ character. A string ┆ 0x0ec0…0ee0 65 6e 63 6c 6f 73 65 64 20 69 6e 20 62 72 61 63 6b 65 74 73 20 5b 5d 20 6d 61 74 63 68 65 73 20 ┆enclosed in brackets [] matches ┆ 0x0ee0…0f00 61 6e 79 20 73 69 6e 67 6c 65 0a 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 20 69 ┆any single character i┆ 0x0f00…0f20 6e 20 74 68 65 20 73 74 72 69 6e 67 20 28 6f 72 20 6e 6f 74 20 69 6e 20 74 68 65 20 73 74 72 69 ┆n the string (or not in the stri┆ 0x0f20…0f40 6e 67 20 69 66 20 70 72 65 2d 0a 20 20 20 20 20 20 20 20 20 20 63 65 64 65 64 20 62 79 20 5e 29 ┆ng if pre- ceded by ^)┆ 0x0f40…0f60 2e 20 20 52 61 6e 67 65 73 20 6f 66 20 41 53 43 49 49 20 63 68 61 72 61 63 74 65 72 20 63 6f 64 ┆. Ranges of ASCII character cod┆ 0x0f60…0f80 65 73 20 6d 61 79 20 62 65 0a 20 20 20 20 20 20 20 20 20 20 61 62 62 72 65 76 69 61 74 65 64 20 ┆es may be abbreviated ┆ 0x0f80…0fa0 61 73 20 69 6e 20 60 61 2d 7a 30 2d 39 27 2e 20 20 41 20 5d 20 6d 61 79 20 6f 63 63 75 72 20 6f ┆as in `a-z0-9'. A ] may occur o┆ 0x0fa0…0fc0 6e 6c 79 20 61 73 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 66 69 72 73 74 20 63 68 61 72 61 ┆nly as the first chara┆ 0x0fc0…0fe0 63 74 65 72 20 6f 66 20 74 68 65 20 73 74 72 69 6e 67 2e 20 20 41 20 6c 69 74 65 72 61 6c 20 2d ┆cter of the string. A literal -┆ 0x0fe0…1000 20 6d 75 73 74 20 62 65 0a 20 20 20 20 20 20 20 20 20 20 70 6c 61 63 65 64 20 77 68 65 72 65 20 ┆ must be placed where ┆ 0x1000…1020 69 74 20 63 61 6e 27 74 20 62 65 20 6d 69 73 74 61 6b 65 6e 20 61 73 20 61 20 72 61 6e 67 65 20 ┆it can't be mistaken as a range ┆ 0x1020…1040 69 6e 64 69 63 61 74 6f 72 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 41 20 72 65 67 75 6c 61 72 20 ┆indicator. A regular ┆ 0x1040…1060 65 78 70 72 65 73 73 69 6f 6e 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 61 6e 20 2a 20 28 61 73 74 ┆expression followed by an * (ast┆ 0x1060…1080 65 72 69 73 6b 29 0a 20 20 20 20 20 20 20 20 20 20 6d 61 74 63 68 65 73 20 61 20 73 65 71 75 65 ┆erisk) matches a seque┆ 0x1080…10a0 6e 63 65 20 6f 66 20 30 20 6f 72 20 6d 6f 72 65 20 6d 61 74 63 68 65 73 20 6f 66 20 74 68 65 20 ┆nce of 0 or more matches of the ┆ 0x10a0…10c0 72 65 67 75 6c 61 72 0a 20 20 20 20 20 20 20 20 20 20 65 78 70 72 65 73 73 69 6f 6e 2e 20 20 41 ┆regular expression. A┆ 0x10c0…10e0 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 ┆ regular expression followed by ┆ 0x10e0…1100 61 20 2b 0a 20 20 20 20 20 20 20 20 20 20 28 70 6c 75 73 29 20 6d 61 74 63 68 65 73 20 61 20 73 ┆a + (plus) matches a s┆ 0x1100…1120 65 71 75 65 6e 63 65 20 6f 66 20 31 20 6f 72 20 6d 6f 72 65 20 6d 61 74 63 68 65 73 20 6f 66 20 ┆equence of 1 or more matches of ┆ 0x1120…1140 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e ┆the regular expression┆ 0x1140…1160 2e 20 20 41 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 20 66 6f 6c 6c 6f 77 65 64 ┆. A regular expression followed┆ 0x1160…1180 20 62 79 20 61 0a 20 20 20 20 20 20 20 20 20 20 3f 20 28 71 75 65 73 74 69 6f 6e 20 6d 61 72 6b ┆ by a ? (question mark┆ 0x1180…11a0 29 20 6d 61 74 63 68 65 73 20 61 20 73 65 71 75 65 6e 63 65 20 6f 66 20 30 20 6f 72 20 31 20 6d ┆) matches a sequence of 0 or 1 m┆ 0x11a0…11c0 61 74 63 68 65 73 0a 20 20 20 20 20 20 20 20 20 20 6f 66 20 74 68 65 20 72 65 67 75 6c 61 72 20 ┆atches of the regular ┆ 0x11c0…11e0 65 78 70 72 65 73 73 69 6f 6e 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 54 77 6f 20 72 65 67 75 6c ┆expression. Two regul┆ 0x11e0…1200 61 72 20 65 78 70 72 65 73 73 69 6f 6e 73 20 63 6f 6e 63 61 74 65 6e 61 74 65 64 20 6d 61 74 63 ┆ar expressions concatenated matc┆ 0x1200…1220 68 20 61 20 6d 61 74 63 68 20 6f 66 0a 20 20 20 20 20 20 20 20 20 20 74 68 65 20 66 69 72 73 74 ┆h a match of the first┆ 0x1220…1240 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 61 20 6d 61 74 63 68 20 6f 66 20 74 68 65 20 73 65 63 6f ┆ followed by a match of the seco┆ 0x1240…1260 6e 64 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 54 77 6f 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 ┆nd. Two regular expre┆ 0x1260…1280 73 73 69 6f 6e 73 20 73 65 70 61 72 61 74 65 64 20 62 79 20 7c 20 6f 72 20 6e 65 77 6c 69 6e 65 ┆ssions separated by | or newline┆ 0x1280…12a0 20 6d 61 74 63 68 0a 20 20 20 20 20 20 20 20 20 20 65 69 74 68 65 72 20 61 20 6d 61 74 63 68 20 ┆ match either a match ┆ 0x12a0…12c0 66 6f 72 20 74 68 65 20 66 69 72 73 74 20 6f 72 20 61 20 6d 61 74 63 68 20 66 6f 72 20 74 68 65 ┆for the first or a match for the┆ 0x12c0…12e0 20 73 65 63 6f 6e 64 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 41 20 72 65 67 75 6c 61 72 20 65 78 ┆ second. A regular ex┆ 0x12e0…1300 70 72 65 73 73 69 6f 6e 20 65 6e 63 6c 6f 73 65 64 20 69 6e 20 70 61 72 65 6e 74 68 65 73 65 73 ┆pression enclosed in parentheses┆ 0x1300…1320 20 6d 61 74 63 68 65 73 20 61 0a 20 20 20 20 20 20 20 20 20 20 6d 61 74 63 68 20 66 6f 72 20 74 ┆ matches a match for t┆ 0x1320…1340 68 65 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 2e 0a 0a 20 20 20 20 20 54 68 65 ┆he regular expression. The┆ 0x1340…1360 20 6f 72 64 65 72 20 6f 66 20 70 72 65 63 65 64 65 6e 63 65 20 6f 66 20 6f 70 65 72 61 74 6f 72 ┆ order of precedence of operator┆ 0x1360…1380 73 20 61 74 20 74 68 65 20 73 61 6d 65 20 70 61 72 65 6e 74 68 65 73 69 73 0a 20 20 20 20 20 6c ┆s at the same parenthesis l┆ 0x1380…13a0 65 76 65 6c 20 69 73 20 5b 5d 20 74 68 65 6e 20 2a 2b 3f 20 74 68 65 6e 20 63 6f 6e 63 61 74 65 ┆evel is [] then *+? then concate┆ 0x13a0…13c0 6e 61 74 69 6f 6e 20 74 68 65 6e 20 7c 20 61 6e 64 20 6e 65 77 6c 69 6e 65 2e 0a 0a 20 20 20 20 ┆nation then | and newline. ┆ 0x13c0…13e0 20 49 64 65 61 6c 6c 79 20 74 68 65 72 65 20 73 68 6f 75 6c 64 20 62 65 20 6f 6e 6c 79 20 6f 6e ┆ Ideally there should be only on┆ 0x13e0…1400 65 20 5f 08 67 5f 08 72 5f 08 65 5f 08 70 2c 20 62 75 74 20 77 65 20 64 6f 6e 27 74 20 6b 6e 6f ┆e _ g_ r_ e_ p, but we don't kno┆ 0x1400…1420 77 20 61 0a 20 20 20 20 20 73 69 6e 67 6c 65 20 61 6c 67 6f 72 69 74 68 6d 20 74 68 61 74 20 73 ┆w a single algorithm that s┆ 0x1420…1440 70 61 6e 73 20 61 20 77 69 64 65 20 65 6e 6f 75 67 68 20 72 61 6e 67 65 20 6f 66 20 73 70 61 63 ┆pans a wide enough range of spac┆ 0x1440…1460 65 2d 0a 20 20 20 20 20 74 69 6d 65 20 74 72 61 64 65 6f 66 66 73 2e 0a 0a 53 08 53 08 53 08 53 ┆e- time tradeoffs. S S S S┆ 0x1460…1480 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 ┆E E E EE E E E A A A AL L L LS S┆ 0x1480…14a0 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 ┆ S SO O O O User Commands (┆ 0x14a0…14c0 31 29 3a 20 20 65 78 2c 20 73 65 64 2c 20 73 68 0a 0a 0a 0a 0a 0a 0a 0a 0a 44 08 44 08 44 08 44 ┆1): ex, sed, sh D D D D┆ 0x14c0…14e0 49 08 49 08 49 08 49 41 08 41 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 ┆I I I IA A A AG G G GN N N NO O ┆ 0x14e0…1500 4f 08 4f 53 08 53 08 53 08 53 54 08 54 08 54 08 54 49 08 49 08 49 08 49 43 08 43 08 43 08 43 53 ┆O OS S S ST T T TI I I IC C C CS┆ 0x1500…1520 08 53 08 53 08 53 0a 20 20 20 20 20 45 78 69 74 20 73 74 61 74 75 73 20 69 73 20 30 20 69 66 20 ┆ S S S Exit status is 0 if ┆ 0x1520…1540 61 6e 79 20 6d 61 74 63 68 65 73 20 61 72 65 20 66 6f 75 6e 64 2c 20 31 20 69 66 20 6e 6f 6e 65 ┆any matches are found, 1 if none┆ 0x1540…1560 2c 20 32 20 66 6f 72 0a 20 20 20 20 20 73 79 6e 74 61 78 20 65 72 72 6f 72 73 20 6f 72 20 69 6e ┆, 2 for syntax errors or in┆ 0x1560…1580 61 63 63 65 73 73 69 62 6c 65 20 66 69 6c 65 73 2e 0a 0a 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 ┆accessible files. M M M ME E E ┆ 0x1580…15a0 45 53 08 53 08 53 08 53 53 08 53 08 53 08 53 41 08 41 08 41 08 41 47 08 47 08 47 08 47 45 08 45 ┆ES S S SS S S SA A A AG G G GE E┆ 0x15a0…15c0 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 67 72 65 70 3a 20 75 6e 6b 6e 6f 77 6e 20 66 ┆ E ES S S S grep: unknown f┆ 0x15c0…15e0 6c 61 67 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 59 6f 75 20 73 70 65 63 69 66 69 65 64 ┆lag You specified┆ 0x15e0…1600 20 61 6e 20 6f 70 74 69 6f 6e 20 77 68 69 63 68 20 5f 08 67 5f 08 72 5f 08 65 5f 08 70 20 64 6f ┆ an option which _ g_ r_ e_ p do┆ 0x1600…1620 65 73 6e 27 74 20 72 65 63 6f 67 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 69 7a 65 ┆esn't recog- nize┆ 0x1620…1640 2e 20 20 43 68 65 63 6b 20 74 68 65 20 6d 61 6e 75 61 6c 20 70 61 67 65 20 61 62 6f 76 65 20 66 ┆. Check the manual page above f┆ 0x1640…1660 6f 72 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 70 74 69 6f 6e 73 2e 0a 0a ┆or the options. ┆ 0x1660…1680 20 20 20 20 20 67 72 65 70 3a 20 61 72 67 75 6d 65 6e 74 20 74 6f 6f 20 6c 6f 6e 67 0a 20 20 20 ┆ grep: argument too long ┆ 0x1680…16a0 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 ┆ The regular expressi┆ 0x16a0…16c0 6f 6e 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 6c 69 6d 69 74 65 64 20 74 6f 20 32 35 31 0a 20 ┆on is currently limited to 251 ┆ 0x16c0…16e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 73 2e 20 20 59 6f 75 20 77 ┆ characters. You w┆ 0x16e0…1700 69 6c 6c 20 68 61 76 65 20 74 6f 20 73 69 6d 70 6c 69 66 79 20 74 68 65 20 65 78 70 72 65 73 2d ┆ill have to simplify the expres-┆ 0x1700…1720 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 69 6f 6e 2e 0a 0a 20 20 20 20 20 67 72 65 70 ┆ sion. grep┆ 0x1720…1740 3a 20 52 45 20 65 72 72 6f 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 59 6f 75 20 68 61 ┆: RE error You ha┆ 0x1740…1760 76 65 20 6d 61 64 65 20 61 20 6d 69 73 74 61 6b 65 20 69 6e 20 73 70 65 63 69 66 79 69 6e 67 20 ┆ve made a mistake in specifying ┆ 0x1760…1780 74 68 65 20 72 65 67 75 6c 61 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 78 70 72 65 ┆the regular expre┆ 0x1780…17a0 73 73 69 6f 6e 2e 20 20 46 6f 72 20 69 6e 73 74 61 6e 63 65 2c 20 61 20 70 61 74 74 65 72 6e 20 ┆ssion. For instance, a pattern ┆ 0x17a0…17c0 73 75 63 68 20 61 73 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6c 6c 6f ┆such as the follo┆ 0x17c0…17e0 77 69 6e 67 20 69 6e 64 69 63 61 74 65 73 20 61 20 62 61 64 6c 79 20 66 6f 72 6d 65 64 20 72 65 ┆wing indicates a badly formed re┆ 0x17e0…1800 67 75 6c 61 72 20 65 78 70 72 65 73 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 69 6f ┆gular expres- sio┆ 0x1800…1820 6e 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 25 20 67 08 67 08 67 08 67 72 08 72 08 72 08 72 65 08 ┆n. % g g g gr r r re ┆ 0x1820…1840 65 08 65 08 65 70 08 70 08 70 08 70 20 20 27 08 27 08 27 08 27 5b 08 5b 08 5b 08 5b 5e 08 5e 08 ┆e e ep p p p ' ' ' '[ [ [ [^ ^ ┆ 0x1840…1860 5e 08 5e 5d 08 5d 08 5d 08 5d 27 08 27 08 27 08 27 20 20 73 08 73 08 73 08 73 6f 08 6f 08 6f 08 ┆^ ^] ] ] ]' ' ' ' s s s so o o ┆ 0x1860…1880 6f 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 66 08 66 08 66 08 66 69 08 69 08 69 08 69 6c 08 6c ┆om m m me e e ef f f fi i i il l┆ 0x1880…18a0 08 6c 08 6c 65 08 65 08 65 08 65 0a 0a 20 20 20 20 20 67 72 65 70 3a 20 63 61 6e 27 74 20 6f 70 ┆ l le e e e grep: can't op┆ 0x18a0…18c0 65 6e 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 0a 20 20 20 20 ┆en _ f_ i_ l_ e_ n_ a_ m_ e ┆ 0x18c0…18e0 20 20 20 20 20 20 20 20 20 20 20 5f 08 67 5f 08 72 5f 08 65 5f 08 70 20 63 61 6e 6e 6f 74 20 61 ┆ _ g_ r_ e_ p cannot a┆ 0x18e0…1900 63 63 65 73 73 20 74 68 65 20 66 69 6c 65 20 73 70 65 63 69 66 69 65 64 20 62 79 20 5f 08 66 5f ┆ccess the file specified by _ f_┆ 0x1900…1920 08 69 5f 08 6c 5f 08 65 5f 08 6e 5f 08 61 5f 08 6d 5f 08 65 2e 0a 20 20 20 20 20 20 20 20 20 20 ┆ i_ l_ e_ n_ a_ m_ e. ┆ […truncated at 200 lines…]