annotate can.pl @ 114:900535236e34

user: billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw changed usebot.sh
author billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
date Thu, 30 Oct 2008 12:08:25 +0800
parents 82eff1aaf0ec
children
rev   line source
113
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
1
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
2 SSUUMMMMAARRYY OOFF LLEESSSS CCOOMMMMAANNDDSS
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
3
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
4 Commands marked with * may be preceded by a number, _N.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
5 Notes in parentheses indicate the behavior if _N is given.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
6
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
7 h H Display this help.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
8 q :q Q :Q ZZ Exit.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
9 ---------------------------------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
10
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
11 MMOOVVIINNGG
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
12
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
13 e ^E j ^N CR * Forward one line (or _N lines).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
14 y ^Y k ^K ^P * Backward one line (or _N lines).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
15 f ^F ^V SPACE * Forward one window (or _N lines).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
16 b ^B ESC-v * Backward one window (or _N lines).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
17 z * Forward one window (and set window to _N).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
18 w * Backward one window (and set window to _N).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
19 ESC-SPACE * Forward one window, but don't stop at end-of-file.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
20 d ^D * Forward one half-window (and set half-window to _N).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
21 u ^U * Backward one half-window (and set half-window to _N).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
22 ESC-) RightArrow * Left one half screen width (or _N positions).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
23 ESC-( LeftArrow * Right one half screen width (or _N positions).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
24 F Forward forever; like "tail -f".
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
25 r ^R ^L Repaint screen.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
26 R Repaint screen, discarding buffered input.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
27 ---------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
28 Default "window" is the screen height.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
29 Default "half-window" is half of the screen height.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
30 ---------------------------------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
31
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
32 SSEEAARRCCHHIINNGG
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
33
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
34 /_p_a_t_t_e_r_n * Search forward for (_N-th) matching line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
35 ?_p_a_t_t_e_r_n * Search backward for (_N-th) matching line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
36 n * Repeat previous search (for _N-th occurrence).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
37 N * Repeat previous search in reverse direction.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
38 ESC-n * Repeat previous search, spanning files.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
39 ESC-N * Repeat previous search, reverse dir. & spanning files.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
40 ESC-u Undo (toggle) search highlighting.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
41 ---------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
42 Search patterns may be modified by one or more of:
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
43 ^N or ! Search for NON-matching lines.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
44 ^E or * Search multiple files (pass thru END OF FILE).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
45 ^F or @ Start search at FIRST file (for /) or last file (for ?).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
46 ^K Highlight matches, but don't move (KEEP position).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
47 ^R Don't use REGULAR EXPRESSIONS.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
48 ---------------------------------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
49
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
50 JJUUMMPPIINNGG
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
51
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
52 g < ESC-< * Go to first line in file (or line _N).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
53 G > ESC-> * Go to last line in file (or line _N).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
54 p % * Go to beginning of file (or _N percent into file).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
55 t * Go to the (_N-th) next tag.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
56 T * Go to the (_N-th) previous tag.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
57 { ( [ * Find close bracket } ) ].
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
58 } ) ] * Find open bracket { ( [.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
59 ESC-^F _<_c_1_> _<_c_2_> * Find close bracket _<_c_2_>.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
60 ESC-^B _<_c_1_> _<_c_2_> * Find open bracket _<_c_1_>
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
61 ---------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
62 Each "find close bracket" command goes forward to the close bracket
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
63 matching the (_N-th) open bracket in the top line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
64 Each "find open bracket" command goes backward to the open bracket
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
65 matching the (_N-th) close bracket in the bottom line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
66
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
67 m_<_l_e_t_t_e_r_> Mark the current position with <letter>.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
68 '_<_l_e_t_t_e_r_> Go to a previously marked position.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
69 '' Go to the previous position.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
70 ^X^X Same as '.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
71 ---------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
72 A mark is any upper-case or lower-case letter.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
73 Certain marks are predefined:
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
74 ^ means beginning of the file
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
75 $ means end of the file
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
76 ---------------------------------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
77
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
78 CCHHAANNGGIINNGG FFIILLEESS
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
79
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
80 :e [_f_i_l_e] Examine a new file.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
81 ^X^V Same as :e.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
82 :n * Examine the (_N-th) next file from the command line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
83 :p * Examine the (_N-th) previous file from the command line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
84 :x * Examine the first (or _N-th) file from the command line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
85 :d Delete the current file from the command line list.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
86 = ^G :f Print current file name.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
87 ---------------------------------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
88
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
89 MMIISSCCEELLLLAANNEEOOUUSS CCOOMMMMAANNDDSS
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
90
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
91 -_<_f_l_a_g_> Toggle a command line option [see OPTIONS below].
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
92 --_<_n_a_m_e_> Toggle a command line option, by name.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
93 __<_f_l_a_g_> Display the setting of a command line option.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
94 ___<_n_a_m_e_> Display the setting of an option, by name.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
95 +_c_m_d Execute the less cmd each time a new file is examined.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
96
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
97 !_c_o_m_m_a_n_d Execute the shell command with $SHELL.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
98 |XX_c_o_m_m_a_n_d Pipe file between current pos & mark XX to shell command.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
99 v Edit the current file with $VISUAL or $EDITOR.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
100 V Print version number of "less".
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
101 ---------------------------------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
102
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
103 OOPPTTIIOONNSS
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
104
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
105 Most options may be changed either on the command line,
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
106 or from within less by using the - or -- command.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
107 Options may be given in one of two forms: either a single
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
108 character preceded by a -, or a name preceeded by --.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
109
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
110 -? ........ --help
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
111 Display help (from command line).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
112 -a ........ --search-skip-screen
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
113 Forward search skips current screen.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
114 -b [_N] .... --buffers=[_N]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
115 Number of buffers.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
116 -B ........ --auto-buffers
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
117 Don't automatically allocate buffers for pipes.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
118 -c ........ --clear-screen
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
119 Repaint by clearing rather than scrolling.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
120 -d ........ --dumb
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
121 Dumb terminal.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
122 -D [_x_n_._n] . --color=_x_n_._n
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
123 Set screen colors. (MS-DOS only)
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
124 -e -E .... --quit-at-eof --QUIT-AT-EOF
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
125 Quit at end of file.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
126 -f ........ --force
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
127 Force open non-regular files.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
128 -F ........ --quit-if-one-screen
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
129 Quit if entire file fits on first screen.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
130 -g ........ --hilite-search
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
131 Highlight only last match for searches.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
132 -G ........ --HILITE-SEARCH
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
133 Don't highlight any matches for searches.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
134 -h [_N] .... --max-back-scroll=[_N]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
135 Backward scroll limit.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
136 -i ........ --ignore-case
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
137 Ignore case in searches that do not contain uppercase.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
138 -I ........ --IGNORE-CASE
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
139 Ignore case in all searches.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
140 -j [_N] .... --jump-target=[_N]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
141 Screen position of target lines.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
142 -J ........ --status-column
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
143 Display a status column at left edge of screen.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
144 -k [_f_i_l_e] . --lesskey-file=[_f_i_l_e]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
145 Use a lesskey file.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
146 -L ........ --no-lessopen
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
147 Ignore the LESSOPEN environment variable.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
148 -m -M .... --long-prompt --LONG-PROMPT
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
149 Set prompt style.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
150 -n -N .... --line-numbers --LINE-NUMBERS
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
151 Don't use line numbers.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
152 -o [_f_i_l_e] . --log-file=[_f_i_l_e]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
153 Copy to log file (standard input only).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
154 -O [_f_i_l_e] . --LOG-FILE=[_f_i_l_e]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
155 Copy to log file (unconditionally overwrite).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
156 -p [_p_a_t_t_e_r_n] --pattern=[_p_a_t_t_e_r_n]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
157 Start at pattern (from command line).
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
158 -P [_p_r_o_m_p_t] --prompt=[_p_r_o_m_p_t]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
159 Define new prompt.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
160 -q -Q .... --quiet --QUIET --silent --SILENT
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
161 Quiet the terminal bell.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
162 -r -R .... --raw-control-chars --RAW-CONTROL-CHARS
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
163 Output "raw" control characters.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
164 -s ........ --squeeze-blank-lines
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
165 Squeeze multiple blank lines.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
166 -S ........ --chop-long-lines
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
167 Chop long lines.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
168 -t [_t_a_g] .. --tag=[_t_a_g]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
169 Find a tag.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
170 -T [_t_a_g_s_f_i_l_e] --tag-file=[_t_a_g_s_f_i_l_e]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
171 Use an alternate tags file.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
172 -u -U .... --underline-special --UNDERLINE-SPECIAL
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
173 Change handling of backspaces.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
174 -V ........ --version
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
175 Display the version number of "less".
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
176 -w ........ --hilite-unread
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
177 Highlight first new line after forward-screen.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
178 -W ........ --HILITE-UNREAD
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
179 Highlight first new line after any forward movement.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
180 -x [_N[,...]] --tabs=[_N[,...]]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
181 Set tab stops.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
182 -X ........ --no-init
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
183 Don't use termcap init/deinit strings.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
184 --no-keypad
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
185 Don't use termcap keypad init/deinit strings.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
186 -y [_N] .... --max-forw-scroll=[_N]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
187 Forward scroll limit.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
188 -z [_N] .... --window=[_N]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
189 Set size of window.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
190 -" [_c[_c]] . --quotes=[_c[_c]]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
191 Set shell quote characters.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
192 -~ ........ --tilde
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
193 Don't display tildes after end of file.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
194 -# [_N] .... --shift=[_N]
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
195 Horizontal scroll amount (0 = one half screen width)
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
196
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
197 ---------------------------------------------------------------------------
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
198
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
199 LLIINNEE EEDDIITTIINNGG
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
200
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
201 These keys can be used to edit text being entered
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
202 on the "command line" at the bottom of the screen.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
203
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
204 RightArrow ESC-l Move cursor right one character.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
205 LeftArrow ESC-h Move cursor left one character.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
206 CNTL-RightArrow ESC-RightArrow ESC-w Move cursor right one word.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
207 CNTL-LeftArrow ESC-LeftArrow ESC-b Move cursor left one word.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
208 HOME ESC-0 Move cursor to start of line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
209 END ESC-$ Move cursor to end of line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
210 BACKSPACE Delete char to left of cursor.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
211 DELETE ESC-x Delete char under cursor.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
212 CNTL-BACKSPACE ESC-BACKSPACE Delete word to left of cursor.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
213 CNTL-DELETE ESC-DELETE ESC-X Delete word under cursor.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
214 CNTL-U ESC (MS-DOS only) Delete entire line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
215 UpArrow ESC-k Retrieve previous command line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
216 DownArrow ESC-j Retrieve next command line.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
217 TAB Complete filename & cycle.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
218 SHIFT-TAB ESC-TAB Complete filename & reverse cycle.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
219 CNTL-L Complete filename, list all.
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
220
82eff1aaf0ec billy3321 <billy3321 AT msn.com>
billy3321@f3svr.f3.csu.edu.tw.f3.csu.edu.tw
parents:
diff changeset
221