home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
You can browse this item here: LESSOPEN
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Mailbox text, 1st line "From the man page:", ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| x-fmt/111 Plain Text File
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| application/mbox
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 74 68 65 | 20 6d 61 6e 20 70 61 67 |From the| man pag|
|00000010| 65 3a 0a 20 20 20 20 20 | 20 20 59 6f 75 20 20 6d |e:. | You m|
|00000020| 61 79 20 20 64 65 66 69 | 6e 65 20 61 6e 20 22 69 |ay defi|ne an "i|
|00000030| 6e 70 75 74 20 70 72 65 | 70 72 6f 63 65 73 73 6f |nput pre|processo|
|00000040| 72 22 20 66 6f 72 20 6c | 65 73 73 2e 20 20 42 65 |r" for l|ess. Be|
|00000050| 66 6f 72 65 0a 20 20 20 | 20 20 20 20 6c 65 73 73 |fore. | less|
|00000060| 20 6f 70 65 6e 73 20 61 | 20 66 69 6c 65 2c 20 69 | opens a| file, i|
|00000070| 74 20 66 69 72 73 74 20 | 67 69 76 65 73 20 79 6f |t first |gives yo|
|00000080| 75 72 20 69 6e 70 75 74 | 20 20 70 72 65 70 72 6f |ur input| prepro|
|00000090| 63 65 73 73 6f 72 0a 20 | 20 20 20 20 20 20 61 20 |cessor. | a |
|000000a0| 20 63 68 61 6e 63 65 20 | 20 74 6f 20 20 6d 6f 64 | chance | to mod|
|000000b0| 69 66 79 20 74 68 65 20 | 77 61 79 20 74 68 65 20 |ify the |way the |
|000000c0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |contents| of the |
|000000d0| 66 69 6c 65 20 61 72 65 | 0a 20 20 20 20 20 20 20 |file are|. |
|000000e0| 64 69 73 70 6c 61 79 65 | 64 2e 0a 0a 57 68 61 74 |displaye|d...What|
|000000f0| 20 74 68 69 73 20 6d 65 | 61 6e 73 20 69 73 20 74 | this me|ans is t|
|00000100| 68 61 74 20 6c 65 73 73 | 28 31 29 20 63 61 6e 20 |hat less|(1) can |
|00000110| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 6f 70 |automati|cally op|
|00000120| 65 6e 20 75 70 20 74 61 | 72 20 66 69 6c 65 73 2c |en up ta|r files,|
|00000130| 0a 75 6e 63 6f 6d 70 72 | 65 73 73 20 67 7a 69 70 |.uncompr|ess gzip|
|00000140| 70 65 64 20 66 69 6c 65 | 73 2c 20 61 6e 64 20 65 |ped file|s, and e|
|00000150| 76 65 6e 20 64 69 73 70 | 6c 61 79 20 73 6f 6d 65 |ven disp|lay some|
|00000160| 74 68 69 6e 67 20 72 65 | 61 73 6f 6e 61 62 6c 65 |thing re|asonable|
|00000170| 20 66 6f 72 0a 67 72 61 | 70 68 69 63 73 20 66 69 | for.gra|phics fi|
|00000180| 6c 65 73 2e 0a 0a 59 6f | 75 20 6a 75 73 74 20 6e |les...Yo|u just n|
|00000190| 65 65 64 20 74 6f 20 70 | 75 74 20 74 68 65 20 66 |eed to p|ut the f|
|000001a0| 6f 6c 6c 6f 77 69 6e 67 | 20 69 6e 20 79 6f 75 72 |ollowing| in your|
|000001b0| 0a 2e 7a 6c 6f 67 69 6e | 2f 2e 6c 6f 67 69 6e 2f |..zlogin|/.login/|
|000001c0| 2e 62 61 73 68 5f 70 72 | 6f 66 69 6c 65 2f 77 68 |.bash_pr|ofile/wh|
|000001d0| 61 74 65 76 65 72 3a 0a | 0a 65 76 61 6c 20 24 28 |atever:.|.eval $(|
|000001e0| 6c 65 73 73 70 69 70 65 | 29 0a 6f 72 0a 65 76 61 |lesspipe|).or.eva|
|000001f0| 6c 20 24 28 6c 65 73 73 | 66 69 6c 65 29 0a 0a 6c |l $(less|file)..l|
|00000200| 65 73 73 70 69 70 65 20 | 77 69 6c 6c 20 74 6f 73 |esspipe |will tos|
|00000210| 73 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 2f 69 |s the co|ntents/i|
|00000220| 6e 66 6f 20 6f 6e 20 73 | 74 64 6f 75 74 20 61 6e |nfo on s|tdout an|
|00000230| 64 20 6c 65 73 73 20 77 | 69 6c 6c 20 72 65 61 64 |d less w|ill read|
|00000240| 20 74 68 65 6d 0a 61 73 | 20 74 68 65 79 20 63 6f | them.as| they co|
|00000250| 6d 65 20 61 63 72 6f 73 | 73 2e 20 20 54 68 69 73 |me acros|s. This|
|00000260| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 79 6f 75 20 | means t|hat you |
|00000270| 64 6f 6e 27 74 20 68 61 | 76 65 20 74 6f 20 77 61 |don't ha|ve to wa|
|00000280| 69 74 20 66 6f 72 20 74 | 68 65 0a 64 65 63 6f 64 |it for t|he.decod|
|00000290| 69 6e 67 20 74 6f 20 66 | 69 6e 69 73 68 20 62 65 |ing to f|inish be|
|000002a0| 66 6f 72 65 20 6c 65 73 | 73 20 73 68 6f 77 73 20 |fore les|s shows |
|000002b0| 79 6f 75 20 74 68 65 20 | 66 69 6c 65 2e 20 20 54 |you the |file. T|
|000002c0| 68 69 73 20 61 6c 73 6f | 20 6d 65 61 6e 73 20 74 |his also| means t|
|000002d0| 68 61 74 0a 79 6f 75 27 | 6c 6c 20 67 65 74 20 61 |hat.you'|ll get a|
|000002e0| 20 27 62 79 74 65 20 4e | 27 20 69 6e 73 74 65 61 | 'byte N|' instea|
|000002f0| 64 20 6f 66 20 61 6e 20 | 4e 25 20 61 73 20 79 6f |d of an |N% as yo|
|00000300| 75 72 20 66 69 6c 65 20 | 70 6f 73 69 74 69 6f 6e |ur file |position|
|00000310| 2e 20 20 59 6f 75 20 63 | 61 6e 0a 73 65 65 6b 20 |. You c|an.seek |
|00000320| 74 6f 20 74 68 65 20 65 | 6e 64 20 61 6e 64 20 62 |to the e|nd and b|
|00000330| 61 63 6b 20 74 6f 20 67 | 65 74 20 74 68 65 20 4e |ack to g|et the N|
|00000340| 25 20 62 75 74 20 74 68 | 61 74 20 6d 65 61 6e 73 |% but th|at means|
|00000350| 20 79 6f 75 20 68 61 76 | 65 20 74 6f 20 77 61 69 | you hav|e to wai|
|00000360| 74 0a 66 6f 72 20 74 68 | 65 20 70 69 70 65 20 74 |t.for th|e pipe t|
|00000370| 6f 20 66 69 6e 69 73 68 | 2e 0a 0a 6c 65 73 73 66 |o finish|...lessf|
|00000380| 69 6c 65 20 77 69 6c 6c | 20 74 6f 73 73 20 74 68 |ile will| toss th|
|00000390| 65 20 63 6f 6e 74 65 6e | 74 73 2f 69 6e 66 6f 20 |e conten|ts/info |
|000003a0| 6f 6e 20 61 20 66 69 6c | 65 20 77 68 69 63 68 20 |on a fil|e which |
|000003b0| 6c 65 73 73 20 77 69 6c | 6c 20 74 68 65 6e 0a 72 |less wil|l then.r|
|000003c0| 65 61 64 2e 20 20 41 66 | 74 65 72 20 79 6f 75 27 |ead. Af|ter you'|
|000003d0| 72 65 20 64 6f 6e 65 2c | 20 6c 65 73 73 66 69 6c |re done,| lessfil|
|000003e0| 65 20 77 69 6c 6c 20 74 | 68 65 6e 20 64 65 6c 65 |e will t|hen dele|
|000003f0| 74 65 20 74 68 65 20 66 | 69 6c 65 2e 20 20 54 68 |te the f|ile. Th|
|00000400| 69 73 0a 6d 65 61 6e 73 | 20 74 68 61 74 20 74 68 |is.means| that th|
|00000410| 65 20 70 72 6f 63 65 73 | 73 20 68 61 73 20 74 6f |e proces|s has to|
|00000420| 20 66 69 6e 69 73 68 20 | 62 65 66 6f 72 65 20 79 | finish |before y|
|00000430| 6f 75 20 73 65 65 20 69 | 74 2c 20 62 75 74 20 79 |ou see i|t, but y|
|00000440| 6f 75 20 67 65 74 20 6e | 69 63 65 0a 70 65 72 63 |ou get n|ice.perc|
|00000450| 65 6e 74 61 67 65 73 20 | 28 4e 25 29 20 75 70 20 |entages |(N%) up |
|00000460| 66 72 6f 6e 74 2e 0a 0a | 49 66 20 79 6f 75 20 68 |front...|If you h|
|00000470| 61 76 65 20 73 6f 6d 65 | 20 61 64 64 69 74 69 6f |ave some| additio|
|00000480| 6e 61 6c 20 74 65 73 74 | 73 20 66 6f 72 20 62 69 |nal test|s for bi|
|00000490| 6e 61 72 79 20 66 69 6c | 65 73 20 74 68 61 74 20 |nary fil|es that |
|000004a0| 49 20 64 6f 6e 27 74 20 | 68 61 6e 64 6c 65 2c 20 |I don't |handle, |
|000004b0| 67 6f 0a 61 68 65 61 64 | 20 61 6e 64 20 73 65 6e |go.ahead| and sen|
|000004c0| 64 20 74 68 65 6d 20 74 | 6f 20 6d 65 2e 20 20 4e |d them t|o me. N|
|000004d0| 6f 74 65 20 74 68 61 74 | 20 49 20 77 69 6c 6c 20 |ote that| I will |
|000004e0| 6e 65 76 65 72 20 69 6e | 74 65 67 72 61 74 65 20 |never in|tegrate |
|000004f0| 63 6f 6d 6d 61 6e 64 73 | 0a 66 6f 72 20 74 65 78 |commands|.for tex|
|00000500| 74 20 66 69 6c 65 73 2e | 20 20 49 66 20 79 6f 75 |t files.| If you|
|00000510| 20 77 61 6e 74 20 74 6f | 20 61 64 64 20 6d 61 6e | want to| add man|
|00000520| 2d 69 66 79 69 6e 67 20 | 6f 72 20 68 74 6d 6c 2d |-ifying |or html-|
|00000530| 69 7a 69 6e 67 20 63 6f | 6d 6d 61 6e 64 73 20 74 |izing co|mmands t|
|00000540| 6f 20 0a 79 6f 75 72 20 | 63 6f 70 79 20 6f 66 20 |o .your |copy of |
|00000550| 6c 65 73 73 70 69 70 65 | 2c 20 67 6f 20 61 68 65 |lesspipe|, go ahe|
|00000560| 61 64 2c 20 74 68 65 79 | 20 6a 75 73 74 20 77 6f |ad, they| just wo|
|00000570| 6e 27 74 20 62 65 20 69 | 6e 74 65 67 72 61 74 65 |n't be i|ntegrate|
|00000580| 64 20 69 6e 20 74 68 65 | 0a 6d 61 69 6e 20 64 69 |d in the|.main di|
|00000590| 73 74 72 69 62 75 74 69 | 6f 6e 2e 0a 0a 48 65 72 |stributi|on...Her|
|000005a0| 65 20 61 72 65 20 74 77 | 6f 20 61 64 64 69 74 69 |e are tw|o additi|
|000005b0| 6f 6e 61 6c 20 74 65 73 | 74 73 20 74 68 61 74 20 |onal tes|ts that |
|000005c0| 79 6f 75 20 6d 69 67 68 | 74 20 6c 69 6b 65 20 74 |you migh|t like t|
|000005d0| 6f 20 75 73 65 20 62 75 | 74 20 61 72 65 6e 27 74 |o use bu|t aren't|
|000005e0| 20 69 6e 0a 74 68 65 20 | 6c 65 73 73 70 69 70 65 | in.the |lesspipe|
|000005f0| 20 73 63 72 69 70 74 20 | 64 75 65 20 74 6f 20 73 | script |due to s|
|00000600| 70 65 65 64 20 6f 72 20 | 70 72 69 6e 63 69 70 6c |peed or |principl|
|00000610| 65 20 6f 66 20 6c 65 61 | 73 74 20 73 75 72 70 72 |e of lea|st surpr|
|00000620| 69 73 65 2e 0a 0a 20 20 | 20 20 23 20 44 65 63 6f |ise... | # Deco|
|00000630| 64 65 20 64 69 72 65 63 | 74 6f 72 69 65 73 3a 0a |de direc|tories:.|
|00000640| 20 20 20 20 69 66 20 5b | 20 2d 64 20 22 24 31 22 | if [| -d "$1"|
|00000650| 20 5d 3b 20 74 68 65 6e | 0a 09 65 63 68 6f 20 22 | ]; then|..echo "|
|00000660| 24 31 3a 22 3b 20 6c 73 | 20 2d 6c 20 24 31 0a 20 |$1:"; ls| -l $1. |
|00000670| 20 20 20 65 6c 73 65 0a | 0a 20 20 20 20 23 20 76 | else.|. # v|
|00000680| 69 65 77 20 73 74 72 69 | 6e 67 73 20 69 6e 73 69 |iew stri|ngs insi|
|00000690| 64 65 20 6f 66 20 61 6e | 20 65 78 65 63 75 74 61 |de of an| executa|
|000006a0| 62 6c 65 0a 20 20 20 20 | 69 66 20 5b 20 2d 78 20 |ble. |if [ -x |
|000006b0| 22 24 31 22 20 5d 3b 20 | 74 68 65 6e 0a 20 20 20 |"$1" ]; |then. |
|000006c0| 20 20 20 20 20 74 79 70 | 65 3d 24 28 66 69 6c 65 | typ|e=$(file|
|000006d0| 20 22 24 31 22 29 0a 20 | 20 20 20 20 20 20 20 63 | "$1"). | c|
|000006e0| 61 73 65 20 22 24 74 79 | 70 65 22 20 69 6e 20 0a |ase "$ty|pe" in .|
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 2a 65 78 65 63 75 | | *execu|
|00000700| 74 61 62 6c 65 2a 20 29 | 0a 20 20 20 20 20 20 20 |table* )|. |
|00000710| 20 20 20 20 20 65 63 68 | 6f 20 2d 65 20 22 24 74 | ech|o -e "$t|
|00000720| 79 70 65 5c 6e 22 0a 20 | 20 20 20 20 20 20 20 20 |ype\n". | |
|00000730| 20 20 20 73 74 72 69 6e | 67 73 20 22 24 31 22 0a | strin|gs "$1".|
|00000740| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 3b 0a 20 | | ;;. |
|00000750| 20 20 20 20 20 20 20 65 | 73 61 63 0a 20 20 20 20 | e|sac. |
|00000760| 66 69 0a 0a 54 68 65 73 | 65 20 74 77 6f 20 65 6e |fi..Thes|e two en|
|00000770| 74 72 69 65 73 20 63 6f | 75 72 74 65 73 79 20 6f |tries co|urtesy o|
|00000780| 66 20 41 64 72 69 61 6e | 20 42 72 69 64 67 65 74 |f Adrian| Bridget|
|00000790| 74 20 3c 61 64 72 69 61 | 6e 2e 62 72 69 64 67 65 |t <adria|n.bridge|
|000007a0| 74 74 40 70 6f 62 6f 78 | 65 73 2e 63 6f 6d 3e 2e |tt@pobox|es.com>.|
|000007b0| 0a 50 6c 65 61 73 65 20 | 73 65 6e 64 20 69 6e 20 |.Please |send in |
|000007c0| 79 6f 75 72 20 65 6e 74 | 72 69 65 73 20 61 73 20 |your ent|ries as |
|000007d0| 77 65 6c 6c 2e 0a 0a 49 | 66 20 79 6f 75 20 68 61 |well...I|f you ha|
|000007e0| 76 65 20 61 6e 79 20 71 | 75 65 73 74 69 6f 6e 73 |ve any q|uestions|
|000007f0| 2c 20 73 65 6e 64 20 6d | 65 20 65 2d 6d 61 69 6c |, send m|e e-mail|
|00000800| 20 61 74 20 3c 74 6f 72 | 69 6e 40 64 61 66 74 2e | at <tor|in@daft.|
|00000810| 63 6f 6d 3e 2e 0a 4d 65 | 6e 74 69 6f 6e 69 6e 67 |com>..Me|ntioning|
|00000820| 20 6c 65 73 73 20 69 6e | 20 74 68 65 20 73 75 62 | less in| the sub|
|00000830| 6a 65 63 74 20 6c 69 6e | 65 20 77 69 6c 6c 20 68 |ject lin|e will h|
|00000840| 65 6c 70 2e 0a | |elp.. | |
+--------+-------------------------+-------------------------+--------+--------+