home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sources / unix / 269 < prev    next >
Encoding:
Text File  |  1992-09-08  |  45.1 KB  |  1,544 lines

  1. Newsgroups: comp.sources.unix
  2. Path: sparky!uunet!decwrl!deccrl!news.crl.dec.com!pa.dec.com!vixie
  3. From: klin@iat.uni-paderborn.de (Peter Klingebiel)
  4. Subject: v26i070: utree - screen oriented filesystem utility (V3.03b-um), Part07/08
  5. Message-ID: <1992Sep7.214955.27172@PA.dec.com>
  6. Originator: vixie@cognition.pa.dec.com
  7. Sender: unix-sources-moderator@pa.dec.com
  8. Organization: DEC Palo Alto
  9. Date: Mon, 7 Sep 92 21:49:55 GMT
  10. Approved: vixie@pa.dec.com
  11. Lines: 1531
  12.  
  13. Submitted-By: klin@iat.uni-paderborn.de (Peter Klingebiel)
  14. Posting-Number: Volume 26, Issue 70
  15. Archive-Name: utree/part07
  16.  
  17. #! /bin/sh
  18. # This is a shell archive.  Remove anything before this line, then unpack
  19. # it by saving it into a file and typing "sh file".  To overwrite existing
  20. # files, type "sh file -c".  You can also feed this as standard input via
  21. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  22. # will see the following message at the end:
  23. #        "End of archive 7 (of 8)."
  24. # Contents:  doc/utree.1
  25. # Wrapped by vixie@cognition.pa.dec.com on Mon Sep  7 14:39:57 1992
  26. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  27. if test -f 'doc/utree.1' -a "${1}" != "-c" ; then 
  28.   echo shar: Will not clobber existing file \"'doc/utree.1'\"
  29. else
  30. echo shar: Extracting \"'doc/utree.1'\" \(43554 characters\)
  31. sed "s/^X//" >'doc/utree.1' <<'END_OF_FILE'
  32. X'''\"
  33. X'''\"   utree.man, utree 3.03-um manual page
  34. X'''\"   klin, Fri Mar  6 11:31:02 1992
  35. X'''\"
  36. X'''\"   [x]roff -man utree.man
  37. X'''\"   groff   -man [-Tdevice] utree.man
  38. X'''\"
  39. X'''\"   SCCSID = @(#) utree.man 3.03-um Mar  6 1992
  40. X'''\"
  41. X.TH UTREE 1L "UTREE Version 3.03-um" "March 6 1992"
  42. X.SH NAME
  43. X.LP
  44. X\fButree\fR \- Screen oriented filesystem browser and utility
  45. X.SH SYNOPSIS
  46. X.LP
  47. utree [options] [rootdirectory]
  48. X.SH DESCRIPTION
  49. X.LP
  50. The screen oriented filesystem browser and utility
  51. X\fButree\fR descends the directory hierarchy
  52. rooted in your home directory,
  53. defined in a tree list file if given,
  54. or rooted in \fBrootdirectory\fR if given,
  55. and displays the directory tree on the so called \fItree screen\fR.
  56. On the \fItree screen\fR \fButree\fR lets you walk thru the tree,
  57. execute some default and user defined commands on it
  58. and change to any directory in the tree.
  59. X.br
  60. If you have changed to a directory \fButree\fR displays all files
  61. in this directory on the so called \fIfile screen\fR.
  62. On the \fIfile screen\fR \fButree\fR lets you walk thru the file list
  63. and execute some default and user defined commands on files.
  64. X.SH OPTIONS
  65. X.LP
  66. The following command line options are interpreted by \fButree\fR:
  67. X.sp
  68. X.TP 16
  69. X\fB-L\fR
  70. XFollow symbolic links to directories
  71. X.TP
  72. X\fB-S\fR
  73. Ignore default minimal screen size of 80 columns and 24 lines
  74. X.TP
  75. X\fB-V\fR
  76. Display \fButree\fR version and copyright notice
  77. X.TP
  78. X\fB-a\fR
  79. Read in all directories,
  80. including those that begin with a dot (.),
  81. which are normally skipped
  82. X.TP
  83. X\fB-b\fR
  84. Suppress ringing of the bell (useful for visual bells)
  85. X.TP
  86. X\fB-c\fR
  87. Don't display and update a clock every second
  88. X.TP
  89. X\fB-d var=[val]\fR
  90. Set the variable \fBvar\fR to value \fBval\fR
  91. or unset the variable \fBvar\fR
  92. X.TP
  93. X\fB-d typ:[cmd]\fR
  94. Define the command \fBcmd\fR for the filetype \fBtyp\fR
  95. or undefine any command for the filetype \fBtyp\fR
  96. X.TP
  97. X\fB-f lst\fR
  98. Build directory tree from list file \fBlst\fR
  99. X.TP
  100. X\fB-g\fR
  101. Don't use graphical characters
  102. X.TP
  103. X\fB-h\fR
  104. Display usage and some help about options
  105. X.TP
  106. X\fB-i ind\fR
  107. Set the tree level indention to \fBind\fR columns (3..9)
  108. X.TP
  109. X\fB-n\fR
  110. Avoid scanning the tree for changes i.e. after shell escape
  111. X.TP
  112. X\fB-l lev\fR
  113. Build the tree up to level \fBlev\fR for quicker startup
  114. X.TP
  115. X\fB-o\fR
  116. Omit saving changes in variables and filetype command definitions,
  117. command history and key bindings
  118. X.TP
  119. X\fB-p lin\fR
  120. Use \fBlin\fR lines for displaying filenames of the current directory
  121. on the \fItree screen\fR (default: 3)
  122. X.TP
  123. X\fB-q\fR
  124. Build the tree up to level 2 (like -l 2)
  125. X.TP
  126. X\fB-r\fR
  127. Build the tree scanning and reading the file system
  128. instead of reading a tree list file
  129. X.TP
  130. X\fB-s\fR
  131. Don't use hardware scrolling
  132. X.TP
  133. X\fB-u\fR
  134. Read and update all file lists after building
  135. the tree from a tree list file
  136. X.TP
  137. X\fB-v mod\fR
  138. Set using video attributes to mode \fBmod\fR.
  139. X\fBmod\fR may be \fB2\fR for all possible,
  140. X\fB1\fR for bold and underline
  141. and \fB0\fR for none video attributes.
  142. X.TP
  143. X\fB-w\fR
  144. Suppress warnings about unreadable directories
  145. X.TP
  146. X\fB-x cmd\fR
  147. Use and execute the string \fBcmd\fR as initial input at startup.
  148. The string \fBcmd\fR is a simple sequence of \fButree\fR commands
  149. X.PP
  150. The boolean options \fBbcgnosw\fR and the
  151. numerical options \fBipv\fR may also be pre-set in
  152. the environment variable \fBUTREE\fR.
  153. XE.g. if you want to suppress ringing of the bell and
  154. displaying and updating the clock and if you prefer a tree indention
  155. of 4 columns set the environment variable \fBUTREE\fR to '\fBbci4\fR'
  156. for this reason.
  157. X.br
  158. Most of the options correspond to \fButree\fR
  159. variables and therefore they may also be set or unset
  160. with the variable command (\fB=\fR).
  161. See the sections \fIglobal commands\fR and \fIvariables\fR below.
  162. X.SH UTREE STARTUP
  163. X.LP
  164. If \fButree\fR is called without the optional command line parameter
  165. X\fBrootdirectory\fR or this directory is rooted in your
  166. home directory \fButree\fR tries to build up the directory tree
  167. reading a file \fB.utreelist\fR in your home directory,
  168. which contains a list of your directory tree created
  169. by a previous \fButree\fR session
  170. or by the additional shell script \fButree.mklist\fR called before.
  171. If the command line option \fB-f lst\fR is given
  172. X\fButree\fR builds up the tree from this list file \fBlst\fR
  173. which may be created with the denoted shell script \fButree.mklist\fR
  174. or a command like \fBfind\fR.
  175. XEntries in such list files have to start with the
  176. directory separator / (slash) in the first column of the line.
  177. All other entries are ignored and skipped.
  178. X.sp
  179. If building the tree from a list file
  180. the file lists of directories are created and read in on demand only,
  181. which means when a directory becomes the current directory
  182. by moving the cursor to this directory.
  183. This speeds up the start of \fButree\fR because there is no need
  184. for scanning and reading the filesystem for subdirectories
  185. what may take some time for larger filesystems.
  186. X.sp
  187. In all others cases,
  188. if no list file is given with the
  189. command line option \fB-f lst\fR,
  190. X\fBrootdirectory\fR is rooted in your home directory
  191. and the file \fB.utreelist\fR is not found,
  192. or the command line option \fB-r\fR is given
  193. X\fButree\fR builds up the tree by
  194. scanning and reading the filesystem recursively.
  195. You can speed up the start with the commandline option
  196. X\fB-l lev\fR which causes \fButree\fR to build the
  197. initial directory tree only up to level \fBlev\fR similar to
  198. the option \fB-l\fR of the well known \fBfind\fR command.
  199. At runtime some commands let you expand the directory
  200. tree later and inspect directories and subtrees
  201. not visible at startup (see below).
  202. X.SH SCREEN LAYOUT
  203. X.LP
  204. The screen is divided into three regions.
  205. The top screen line,
  206. the so called \fIecho line\fR is for displaying
  207. messages and entering input.
  208. The second screen line,
  209. the so called \fIhelp line\fR is for displaying
  210. help messages and the \fButree\fR default
  211. or user defined menu lines.
  212. X.br
  213. The rest of the screen forms a window on the directory tree
  214. on the \fItree screen\fR or
  215. on the file list of the current directory
  216. on the \fIfile screen\fR.
  217. Or he is used for displaying variable or filetype commands settings,
  218. for displaying help pages and displaying command outputs.
  219. X.SH UTREE SCREENS AND MENUS
  220. X.LP
  221. X\fBUtree\fR knows the following screens and menus:
  222. X.sp
  223. X.TP 20
  224. X\fBtree screen\fR
  225. This is the initial screen displayed when \fButree\fR is started
  226. and has built up the directory tree.
  227. The \fItree screen\fR forms a window on the directory tree.
  228. The current directory on which most commands are
  229. working is highlighted and the last
  230. screen lines are used to display the first files
  231. of the file list of the current directory.
  232. You may move the window over the directory tree,
  233. enlarge or shrink the directory tree window
  234. or walk thru the directory tree and execute
  235. default and user defined commands on directories and subtrees.
  236. On the help line the most important commands available
  237. for directories or subtrees on
  238. the \fItree screen\fR are shown in the default \fItree menu\fR.
  239. The tree menu shows the names of the
  240. the \fItree screen\fR commands,
  241. the keystrokes to invoke a command are marked with uppercase letters.
  242. You may switch the menu to a user defined menu line
  243. displaying user defined commands for the \fItree screen\fR.
  244. XFor further information about all \fItree screen\fR commands
  245. see the sections \fIglobal commands\fR,
  246. X\fItree screen commands\fR and \fIvariables\fR of this manual page.
  247. X.sp
  248. X.TP
  249. X\fBfile screen\fR
  250. The \fIfile screen\fR forms a window on all files of the
  251. current directory.
  252. The current file on which most commands are
  253. working is highlighted.
  254. Yoy may move the window over the file list
  255. or walk thru the file list and execute
  256. default and user defined commands on files.
  257. On the help line the most important commands
  258. for files available on
  259. the \fIfile screen\fR are shown in the default \fIfile menu\fR.
  260. The file menu displays the names of the
  261. the \fIfile screen\fR commands,
  262. the keystrokes to invoke a command are marked with uppercase letters.
  263. You may switch the menu to a user define menu line
  264. displaying user defined commands for the \fIfile screen\fR.
  265. XFor further information about all \fIfile screen\fR commands
  266. see the sections \fIglobal commands\fR,
  267. X\fIfile screen commands\fR and \fIvariables\fR of this manual page.
  268. X.sp
  269. X.TP
  270. X\fBhelp screen\fR
  271. If you have switched to the \fIhelp screen\fR with
  272. the help command (\fBh\fR)
  273. on the help line the
  274. X\fIhelp menu\fR is displayed and you may
  275. select help about interesting topics.
  276. The help menu displays the names of all
  277. available help topics,
  278. the keystrokes to select help about a topic
  279. are marked with uppercase letters.
  280. XFor more information see the section \fIhelp pages\fR below.
  281. X.sp
  282. X.TP
  283. X\fBvariables screen\fR
  284. If you have switched to the \fIvariables\fR screen with
  285. the variables command (\fB=\fR)
  286. all variables and their settings are displayed
  287. and you may set or unset any of the variables.
  288. On the help line is shown how to set or unset a variable
  289. in a short form.
  290. All changes in variables definitions are
  291. saved to the file \fB.utree\fR in your home directory
  292. if the variable \fBAUTOSAVE\fR is set.
  293. XFor more information see the section \fIvariables\fR below.
  294. X.sp
  295. X.TP
  296. X\fBcommands screen\fR
  297. If you have switched to the filetype \fIcommands screen\fR with
  298. the filetype commands command (\fB:\fR)
  299. all filetype commands and their settings are displayed
  300. and you may set or unset any of the filetype commands.
  301. On the help line is shown how to set or
  302. unset a filetype command in a short form.
  303. All changes in filetype command definitions are
  304. saved to the file \fB.utree\fR in your home directory
  305. if the variable \fBAUTOSAVE\fR is set.
  306. XFor more information see the section \fIfiletype commands\fR below.
  307. X.sp
  308. X.TP
  309. X\fBshell screen\fR
  310. If you have switched to the \fIshell screen\fR with
  311. the shell command (\fB!\fR) for executing commands
  312. not supported directly by \fButree\fR
  313. all previously entered commands saved in a so called
  314. history list are displayed on the \fIshell screen\fR.
  315. You may get any command from the history list
  316. into the line editor for editing and execution
  317. or enter and execute a new command.
  318. All commands up to a maximal number defined in
  319. the variable \fBHISTSIZE\fR are saved in the
  320. history list.
  321. Before leaving \fButree\fR all saved commands
  322. in the history list are saved to a
  323. history file \fB.utreehist\fR in your home directory
  324. if the variable \fBAUTOSAVE\fR is set.
  325. At startup this file is searched for and read in
  326. if found.
  327. XFor more information see also the section \fIvariables\fR below.
  328. X.sp
  329. X.TP
  330. X\fBbindings screen\fR
  331. If you have switched to the \fIbindings screen\fR
  332. with the bindings command (\fB|\fR) all
  333. currently defined key bindings and their meaning are
  334. displayed and you may bind any key to an appropriate
  335. utree command or to insert a string into the
  336. input buffer.
  337. At startup a file \fB.utree-TERM\fR in your home directory
  338. or a file \fButree-TERM\fR in a global startup directory
  339. is read in if found containing key bindings for
  340. the terminal type defined in the environment variable \fBTERM\fR.
  341. All changes in key bindings you have done on the
  342. X\fIbindings screen\fR at runtime are saved to \fB.utree-TERM\fR
  343. if the variable \fBAUTOSAVE\fR is set.
  344. XFor more information see also the section \fBkey bindings\fR
  345. below.
  346. X.sp
  347. X.TP
  348. X\fBstatus screen\fR
  349. The status command (\fBs\fR) displays all information
  350. available about a file or directory on the \fIstatus screen\fR.
  351. Here you may change the ownership, group membership
  352. or access rights of a file or directory.
  353. On BSD systems not all of the denoted changes may be allowed
  354. for normal users.
  355. X.SH KEY NAMING CONVENTIONS AND DEFAULT KEY BINDINGS
  356. X.LP
  357. All \fButree\fR commands are simple single letter commands or
  358. control sequences.
  359. The default or user defined commands therefore
  360. are invoked with a single keystroke or a combination
  361. of the <\fICONTROL\fR> key with
  362. another key.
  363. The naming conventions in the following manual sections
  364. for \fButree\fR commands invoked by a keystroke are:
  365. X.sp
  366. X.TP  20
  367. X\fBkey\fR
  368. means hit this <\fIkey\fR> only
  369. X.TP
  370. X\fBC-key\fR
  371. means hold down the <\fICONTROL\fR>-key and hit <\fIkey\fR>
  372. X.PP
  373. To permit rebinding of pre-defined keys or
  374. binding functions keys to \fButree\fR commands
  375. all control sequences have special names.
  376. All key or functions names and their default bindings
  377. are list in the table below
  378. X.TP 20
  379. X\fBSELECT\fR
  380. CR, NL
  381. X.TP
  382. X\fBFORWARD\fR
  383. C-f
  384. X.TP
  385. X\fBBACKWARD\fR
  386. C-b
  387. X.TP
  388. X\fBNEXT\fR
  389. C-n
  390. X.TP
  391. X\fBPREVIOUS\fR
  392. C-p
  393. X.TP
  394. X\fBNEXTPAGE\fR
  395. C-v
  396. X.TP
  397. X\fBPREVPAGE\fR
  398. C-w
  399. X.TP
  400. X\fBBEGIN\fR
  401. C-a
  402. X.TP
  403. X\fBEND\fR
  404. C-e
  405. X.TP
  406. X\fBUP\fR
  407. C-u
  408. X.TP
  409. X\fBDOWN\fR
  410. C-d
  411. X.TP
  412. X\fBINSERT\fR
  413. C-o
  414. X.TP
  415. X\fBDELETE\fR
  416. BS
  417. X.TP
  418. X\fBKILL\fR
  419. C-k
  420. X.TP
  421. X\fBSETMARK\fR
  422. C-@
  423. X.TP
  424. X\fBGOTOMARK\fR
  425. C-g
  426. X.TP
  427. X\fBGOTOTAG\fR
  428. C-t,TAB
  429. X.TP
  430. X\fBHELP\fR
  431. C-r
  432. X.TP
  433. X\fBREFRESH\fR
  434. C-l
  435. X.TP
  436. X\fBCANCEL\fR
  437. C-x
  438. X.TP
  439. X\fBBREAK\fR
  440. C-c,C-y
  441. X.TP
  442. X\fBEXIT\fR
  443. C-z
  444. X.PP
  445. In the following sections of this manual page the
  446. default key bindings are used instead of the
  447. names or functions.
  448. X.PP
  449. Some function keys are supported by \fButree\fR,
  450. i.e. the four arrow or cursor keys,
  451. and are bound to appropriate functions.
  452. See the sections \fIkey bindings\fR and \fIfunction keys\fR
  453. below for more details.
  454. X.SH HELP PAGES
  455. X.LP
  456. If the \fButree\fR help pages contained in the file \fButree.help\fR
  457. are accessible in a directory defined at compile time or defined in
  458. the environment variable \fBUTLIB\fR you can get help
  459. on all screens or from within the line editor
  460. with the help command (\fBh\fR or \fB?\fR) or the help key (\fBC-r\fR).
  461. After displaying help about your current context,
  462. i.e. help about tree commands if you are on the \fItree screen\fR,
  463. you can switch to the help menu and
  464. select help about all topics with a single keystroke.
  465. All \fIhelp screen\fR commmands and the menu items of the help menu
  466. displayed on the help line are:
  467. X.sp
  468. X.TP 16
  469. X\fBh\fR
  470. X(Help) About the help pages and the help menu
  471. X.TP
  472. X\fBa\fR
  473. X(About) Information about \fButree\fR and key naming conventions
  474. X.TP
  475. X\fBu\fR
  476. X(Usage) Description of \fButree\fR usage and commandline options
  477. X.TP
  478. X\fBg\fR
  479. X(Global) Global commands common for the \fItree\fR and the \fIfile screen\fR
  480. X.TP
  481. X\fBt\fR
  482. X(Tree) Commands for the \fItree screen\fR
  483. X.TP
  484. X\fBf\fR
  485. X(File) Commands for the \fIfile screen\fR
  486. X.TP
  487. X\fBe\fR
  488. X(Edit) Commands of the builtin line editor
  489. X.TP
  490. X\fBv\fR
  491. X(Vars) \fBUtree\fR variables and variable definition
  492. X.TP
  493. X\fBc\fR
  494. X(Cmds) Filetype commands and filetype command definition
  495. X.TP
  496. X\fBl\fR
  497. X(Line) Line format for user defined tree, file and filetype commands.
  498. X.TP
  499. X\fBk\fR
  500. X(Keys) Function keys used by \fButree\fR
  501. X.TP
  502. X\fBp\fR
  503. X(Patterns) File pattern matching, filename, modification time and
  504. file size patterns
  505. X.TP
  506. X\fBq\fR
  507. X(Quit)
  508. Leave \fIhelp screen\fR
  509. X.PP
  510. The help pages contain in short form most information given
  511. in the sections of this manual page.
  512. X.SH GLOBAL COMMANDS
  513. X.LP
  514. The following commands are common for the \fItree\fR and \fIfile screen\fR
  515. They can be given in lowercase or uppercase letters:
  516. X.sp
  517. X.TP 20
  518. X\fBC-z\fR
  519. XExit \fButree\fR from all screens
  520. X.TP
  521. X\fBC-c,C-y\fR
  522. Cancel or break current command or input
  523. X.TP
  524. X\fBC-l\fR
  525. Redisplay the current screen or the input line
  526. X.TP
  527. X\fBTAB,C-t\fR
  528. Move to the next tagged file or the next directory
  529. containing tagged files
  530. X.TP
  531. X\fBh,?,C-r\fR
  532. Display help pages and switch to the \fIhelp screen\fR
  533. and the help menu
  534. X.TP
  535. X\fB@,C-@\fR
  536. Mark the current directory or file
  537. X.TP
  538. X\fB#,C-g\fR
  539. Goto to a previously marked directory or file
  540. X.TP
  541. X\fBa\fR
  542. Display \fButree\fR version and copyright notice
  543. X.TP
  544. X\fBd\fR
  545. Display current date and time
  546. X.TP
  547. X\fBj\fR
  548. Move to the next directory or file (for vi fans)
  549. X.TP
  550. X\fBk\fR
  551. Move to the previous directory or file (for vi fans)
  552. X.TP
  553. X\fBn\fR
  554. Change sort criteria from lexical order to modification time order
  555. or vice versa and resort files in the file list
  556. X.TP
  557. X\fBt\fR
  558. Tag files matching a file pattern for further processing
  559. X.TP
  560. X\fBu\fR
  561. Untag files
  562. X.TP
  563. X\fBw\fR
  564. Display full pathname of the current directory
  565. X.TP
  566. X\fBz\fR
  567. Zoom files from filelist matching a file pattern
  568. X.TP
  569. X\fB=\fR
  570. Switch to the \fIvariables screen\fR,
  571. display and set or unset variables
  572. X.TP
  573. X\fB:\fR
  574. Switch to the \fIcommands screen\fR,
  575. display and set or unset
  576. filetype commands
  577. X.TP
  578. X\fB|\fR
  579. Switch to the \fIbindings screen\fR,
  580. display all key bindings
  581. and bind or rebind keys
  582. X.TP
  583. X\fB!\fR
  584. Switch to the \fIshell screen\fR, display all commands
  585. from the shell command history list, enter and execute
  586. commands not supported directly from \fButree\fR.
  587. Before a given command is executed the command line
  588. is searched for some sprintf like format characters
  589. lead in by a percent sign (%) which are expanded.
  590. See the section \fIline formats\fR for more
  591. information
  592. X.TP
  593. X\fB$\fR
  594. XEscape to an interactive shell
  595. X.SH TREE SCREEN COMMANDS
  596. X.LP
  597. All commands on the \fItree screen\fR can be given in
  598. lowercase or uppercase letters with the meaning denoted below.
  599. Commands given in lowercase letters affect the current directory only.
  600. Commands given in uppercase letters
  601. indicated by an uppercase letter in the table below
  602. affect the subtree rooted in the current directory
  603. or all tagged files in the subtree rooted in the current directory.
  604. The \fItree screen\fR commmands and the menu items of the
  605. default tree menu displayed on the help line are:
  606. X.sp
  607. X.TP 20
  608. X\fB>,CR,NL,SP,>\fR
  609. Change to the \fIfile screen\fR of the current directory
  610. X.TP
  611. X\fB<\fR
  612. Change to the \fIfile screen\fR of the parent directory
  613. X.TP
  614. X\fBC-n\fR
  615. Move to the next directory
  616. X.TP
  617. X\fBC-p\fR
  618. Move to the previous directory
  619. X.TP
  620. X\fBC-f\fR
  621. Move to the next directory on same level as the current directory
  622. X.TP
  623. X\fBC-b\fR
  624. Move to the previous directory on same level as the current directory
  625. X.TP
  626. X\fBC-v\fR
  627. Move one page forward
  628. X.TP
  629. X\fBC-w\fR
  630. Move one page backward
  631. X.TP
  632. X\fBC-a\fR
  633. Move to the beginning of the directory tree
  634. X.TP
  635. X\fBC-e\fR
  636. Move to the end of the directory tree
  637. X.TP
  638. X\fBTAB,C-t\fR
  639. Move to next the directory containing tagged files
  640. X.TP
  641. X\fBC-u\fR
  642. Scroll up one line the directory tree
  643. X.TP
  644. X\fBC-d\fR
  645. Scroll down one line the directory tree
  646. X.TP
  647. X\fB@,C-@\fR
  648. Mark the current directory
  649. X.TP
  650. X\fB#,C-g\fR
  651. Move to a previously marked directory
  652. X.TP
  653. X\fBh,?\fR
  654. X(Help) Help about \fItree screen\fR commands
  655. X.TP
  656. X\fBb,B\fR
  657. X(Backup) Backup the current directory or tree or
  658. backup all tagged files in the subtree
  659. X.TP
  660. X\fBc,C\fR
  661. X(Chdir) Move to a directory or copy all tagged files
  662. in the subtree. Before you move to a directory you are requested
  663. for the name of this directory before.
  664. Instead entering a name you can select a directory
  665. from the tree with C-n and C-p.
  666. Instead of entering a name of a directory
  667. where to copy the tagged files you can
  668. select a directory from the tree with C-n and C-p
  669. or directly from \fItree screen\fR using CR.
  670. X.TP
  671. X\fBf,F\fR
  672. X(Find) Find files in the current directory or subtree matching a
  673. file pattern you have to enter before.
  674. If a file matching the given pattern is found
  675. you may tag this file,
  676. change to the directory containing the found file
  677. or continue find
  678. X.TP
  679. X\fBg,G\fR
  680. X(Grep) Search for pattern in files in the current directory or subtree.
  681. You are requested for a file and a search pattern.
  682. If a file matching the search pattern is found
  683. you may tag this file,
  684. change to the directory containing the found file
  685. or continue search
  686. X.TP
  687. X\fBi\fR
  688. X(Info) Display some short information about the current directory.
  689. Displayed are access rights, modification time and
  690. the disk usage of the current directory or subtree
  691. X.TP
  692. X\fBl,L\fR
  693. X(List) List files in the current directory or subtree matching a file pattern
  694. you are requested before or list all tagged files in the subtree
  695. X.TP
  696. X\fBm,M\fR
  697. X(Mkdir) Create a new directory rooted in the current directory
  698. or move all tagged files to a destination directory.
  699. Instead of entering the directory name you can select
  700. this name from the directory tree with C-n and C-p
  701. or directly from \fItree screen\fR using CR.
  702. X.TP
  703. X\fBn,N\fR
  704. Change the sort criteria from lexical order to modification time order
  705. or vice versa and resort the file list of the current directory
  706. or subtree
  707. X.TP
  708. X\fBo\fR
  709. X(Out) Write a list of directories, files, tagged files,
  710. files matching a file pattern or a formatted tree list to a list file.
  711. A formatted tree list file can later be displayed on the screen
  712. or send to a printer using the additional filter command
  713. X\fButree.prlist\fR
  714. X.TP
  715. X\fBq\fR
  716. X(Quit) Leave the \fItree screen\fR and exit \fButree\fR
  717. X.TP
  718. X\fBr,R\fR
  719. X(Rmdir) Remove the current directory or all tagged files in
  720. the subtree.
  721. A directory to be removed may not
  722. contain any subdirectories.
  723. X.TP
  724. X\fBs\fR
  725. X(Stat) Switch to the \fIstatus screen\fR,
  726. display all status information of the current directory
  727. and change owner, group and access rights of the current directory
  728. X.TP
  729. X\fBt,T\fR
  730. X(Tag) Tag files in the current directory or subtree matching a file pattern
  731. you are requested before
  732. X.TP
  733. X\fBu,U\fR
  734. X(Untag) Untag files in the current directory or subtree
  735. X.TP
  736. X\fBz,Z\fR
  737. Zoom files matching a file pattern in the
  738. current directory or subtree.
  739. Zooming means that only those files mating the file pattern
  740. are displayed and visible for further processing.
  741. X.TP
  742. X\fB+\fR
  743. XEnlarge the tree window, shrink the file window one line
  744. X.TP
  745. X\fB-\fR
  746. Shrink the tree window, enlage the file window one line
  747. X.TP
  748. X\fB/\fR
  749. Scan the current directory or tree and rebuild directories
  750. if they need rebuilding
  751. X(i.e. if they are not yet read in or have changed)
  752. X.TP
  753. X\fB\e\fR
  754. Scan the current directory for subdirectories
  755. and build up and insert the subtree into the directory tree.
  756. You are requested for the maximal tree level to build up
  757. before
  758. X.TP
  759. X\fB0\fR
  760. Switch the tree menuline from the default to the user defined
  761. tree commands or vice versa
  762. X.TP
  763. X\fB1..9\fR
  764. XExecute the user defined tree command 1 .. 9
  765. X.PP
  766. XFor further information about file patterns for the commands find,
  767. grep, list, tag and untag see the section \fIfile patterns\fR below.
  768. XFor user defined tree commands see the section \fIvariables\fR.
  769. X.SH FILE SCREEN COMMANDS
  770. X.LP
  771. All commands on the \fIfile screen\fR can be given in lowercase
  772. or uppercase letters with the meaning denoted below.
  773. Commands given in lowercase letters  affect the current file only.
  774. Commands given in uppercase letters indicated by an uppercase letter
  775. in the table below affect
  776. all tagged (selected) files if files are tagged or the current
  777. file if no files are tagged.
  778. The file \fIscreen commmands\fR and the menu items of the
  779. default file menu displayed on the help line are:
  780. X.sp
  781. X.TP 20
  782. X\fBq,CR,NL,SP\fR
  783. X(Quit) Leave the \fIfile screen\fR and change back to the \fItree screen\fR
  784. X.TP
  785. X\fBC-f\fR
  786. Move to the next file
  787. X.TP
  788. X\fBC-b\fR
  789. Move to the previous file
  790. X.TP
  791. X\fBC-n\fR
  792. Move to the file on the next line
  793. X.TP
  794. X\fBC-p\fR
  795. Move to the file on the previous line
  796. X.TP
  797. X\fBC-v\fR
  798. Move one page forward
  799. X.TP
  800. X\fBC-w\fR
  801. Move one page backward
  802. X.TP
  803. X\fBC-a\fR
  804. Move to the beginning of the file list
  805. X.TP
  806. X\fBC-e\fR
  807. Move to the end of the file list
  808. X.TP
  809. X\fBTAB,C-t\fR
  810. Move to the next tagged file
  811. X.TP
  812. X\fBC-u\fR
  813. Scroll up one line the \fIfile screen\fR
  814. X.TP
  815. X\fBC-d\fR
  816. Scroll down one line the \fIfile screen\fR
  817. X.TP
  818. X\fB@,C-@\fR
  819. Mark the current file
  820. X.TP
  821. X\fB#,C-g\fR
  822. Move to a previously marked file
  823. X.TP
  824. X\fBh,?\fR
  825. X(Help) Help about \fIfile screen\fR commands and
  826. switch to the \fIhelp screen\fR
  827. X.TP
  828. X\fBc,C\fR
  829. X(Copy) Copy the current file or tagged files.
  830. You are requested for a destination file or directory
  831. where to copy the file or tagged files.
  832. Instead of entering a directory name you can select
  833. a destination directory using C-n and C-p or
  834. select directly on the \fItree screen\fR with CR
  835. X.TP
  836. X\fBe,E\fR
  837. X(Edit) Edit the current file or tagged files
  838. X.TP
  839. X\fBf\fR
  840. X(Find) Find files matching a file pattern you are requested before
  841. X.TP
  842. X\fBg,G\fR
  843. X(Grep) Search for a pattern in the current file or tagged files.
  844. Before search you are requested for a file pattern and the
  845. search pattern to search for
  846. X.TP
  847. X\fBi,I\fR
  848. Display some short information about the current file or tagged files.
  849. Displayed are the access rights, the size and the
  850. modification time of the current file or tagged files
  851. X.TP
  852. X\fBl,L\fR
  853. X(List) List files matching a file pattern you are requested before
  854. or all tagged files
  855. X.TP
  856. X\fBm,M\fR
  857. X(Move) Move or rename the current file or tagged files.
  858. You are requested for the new file name or a destination
  859. directory where to move the current file or tagged files
  860. Instead of entering the name of a destination directory
  861. you can select a directory using C-n and C-p
  862. or directly on the \fItree screen\fR with CR
  863. X.TP
  864. X\fBn\fR
  865. Change the sort criteria from lexical order to modification time order
  866. or vice versa and resort the file list
  867. X.TP
  868. X\fBp,P\fR
  869. X(Print) Print out the current file or tagged files
  870. X.TP
  871. X\fBr,R\fR
  872. X(Remove) Remove the current file or tagged files.
  873. Before removing you are asked if you really
  874. want to remove the current file or tagged files
  875. X.TP
  876. X\fBs,S\fR
  877. X(Stat) Switch to the \fIstatus screen\fR
  878. display all status information of the current or tagged files
  879. and change owner, group and access rights of
  880. the current file or tagged files
  881. X.TP
  882. X\fBt,T\fR
  883. X(Tag) Tag  the current file or files matching a file pattern
  884. you are requested before for further processing
  885. X.TP
  886. X\fBu,U\fR
  887. X(Untag) Untag the current file or files matching a file pattern
  888. you are requested before
  889. X.TP
  890. X\fBv,V\fR
  891. X(View) View the current file or tagged files
  892. X.TP
  893. X\fBx,X\fR
  894. XExecute the current file or tagged files.
  895. If a filetype command is defined for this file
  896. you can execute this filetype command,
  897. otherwise you are requested for a command
  898. or for parameters to execute
  899. X.TP
  900. X\fBz\fR
  901. Zoom files matching a file pattern
  902. X.TP
  903. X\fB>\fR
  904. If the current file is a directory
  905. change to the \fIfile screen\fR of this directory
  906. X.TP
  907. X\fB<\fR
  908. Change back to the \fIfile screen\fR of the parent directory
  909. X.TP
  910. X\fB/\fR
  911. Rebuild the file list (i.e. after shell escape)
  912. X.TP
  913. X\fB0\fR
  914. Switch the menuline from the default to the user defined
  915. file commands or vice versa
  916. X.TP
  917. X\fB1..9\fR
  918. XExecute the user defined file commands 1 .. 9
  919. X.PP
  920. XFor further information about file patterns for the commands find,
  921. grep, list, tag and untag see the section \fIfile patterns\fR below.
  922. XFor user defined file commands see the section
  923. X\fIvariables\fR.
  924. XFor filetype command execution invoked with the command \fBx\fR
  925. see the section \fIfiletype commands\fR below.
  926. X.SH LINE EDITOR COMMANDS
  927. X.LP
  928. Many \fButree\fR commands need some user input for
  929. further processing which is done with a builtin
  930. simple line editor.
  931. Many commands pre-set the input buffer with
  932. a default input line if this default is known.
  933. XFor some commands you can use the keys
  934. C-n and C-p to scroll in already existing
  935. input lists and select an input line
  936. for editing or processing
  937. without entering the line completely.
  938. The line editor knows about the following functions:
  939. X.sp
  940. X.TP 20
  941. X\fBCR,NL\fR
  942. Accept and send the input line
  943. X.TP
  944. X\fBC-c,C-y\fR
  945. Cancel input and leave the line editor
  946. X.TP
  947. X\fBC-o\fR
  948. Switch from overwrite-mode to insert-mode or vice versa
  949. X.TP
  950. X\fBC-l\fR
  951. Redisplay the input line
  952. X.TP
  953. X\fBC-f\fR
  954. Move the cursor one character forward
  955. X.TP
  956. X\fBC-b\fR
  957. Move the cursor one character backward
  958. X.TP
  959. X\fBC-a\fR
  960. Move the cursor to the beginning of the input line
  961. X.TP
  962. X\fBC-e\fR
  963. Move the cursor to the end of the input line
  964. X.TP
  965. X\fBC-v\fR
  966. Scroll horizontally forward the input line
  967. X.TP
  968. X\fBC-w\fR
  969. Scroll horizontally backward the input line
  970. X.TP
  971. X\fBC-d\fR
  972. Delete one character under the cursor
  973. X.TP
  974. X\fBC-h,DEL\fR
  975. Delete one character left from the cursor
  976. X.TP
  977. X\fBC-x\fR
  978. Delete the input line completely
  979. X.TP
  980. X\fBC-k\fR
  981. Delete the input line from the cursor position to the end
  982. X.TP
  983. X\fBC-t\fR
  984. Transpose two characters under and left from the cursor
  985. X.TP
  986. X\fBC-r\fR
  987. Display help pages and switch to the \fIhelp screen\fR
  988. X.TP
  989. X\fBC-@\fR
  990. Set a mark at the current cursor position
  991. X.TP
  992. X\fBC-g\fR
  993. Move the cursor to the previously marked position
  994. X.TP
  995. X\fBC-n\fR
  996. Get the next entry into the line editor
  997. X.TP
  998. X\fBC-p\fR
  999. Get the previous entry into the line editor
  1000. X.PP
  1001. All other printable characters are appended at the end of input line,
  1002. inserted in insert-mode
  1003. or overwrite the character under the cursor in overwrite-mode.
  1004. The current mode is displayed at the end of the help line.
  1005. Most line editor commands are also available with function keys,
  1006. see the section \fIfunction keys\fR below.
  1007. X.SH VARIABLES
  1008. X.LP
  1009. Utree knows about and uses the following variables which may be
  1010. set or unset at startup in the startupfile \fB$HOME/.utree\fR,
  1011. with some commandline options (see \fIoptions\fR above),
  1012. or the variables command (\fB=\fR) on the \fIvariables screen\fR:
  1013. X.sp
  1014. X.TP 20
  1015. X\fBBELL\fR
  1016. or \fBBL\fR: Allow ringing of the bell if set
  1017. X.TP
  1018. X\fBCLOCK\fR
  1019. or \fBCL\fR: Show and update clock every second if set
  1020. X.TP
  1021. X\fBGRAPHCHARS\fR
  1022. or \fBGC\fR: Use the graphical character set if set.
  1023. Not all terminal database termcap or terminfo
  1024. definitions of the graphical character set are
  1025. correct
  1026. X.TP
  1027. X\fBTERMSCROLL\fR
  1028. or \fBTS\fR: Use hardware terminal scrolling if set.
  1029. On some terminals (i.e. on the X terminal emulator xterm)
  1030. redrawing the screen may be faster than scrolling
  1031. X.TP
  1032. X\fBSCANTREE\fR
  1033. or \fBST\fR: Allow scanning the tree for changes if set.
  1034. Many commands scan the directory tree after execution
  1035. what may take some time.
  1036. Prohibiting tree scanning
  1037. therefore may speed up \fButree\fR a little bit
  1038. X.TP
  1039. X\fBWARNDIRS\fR
  1040. or \fBWD\fR: Allow warnings and requests about unreadable directories if set
  1041. X.TP
  1042. X\fBLEXSORT\fR
  1043. or \fBLS\fR: Sort filenames in lexical order if set,
  1044. in order of modification times if not set.
  1045. X.TP
  1046. X\fBAUTOSAVE\fR
  1047. or \fBAS\fR: Save changes in variables or filetype commands definitions,
  1048. key bindings and history list
  1049. to appropriate files in the home directory
  1050. X.TP
  1051. X\fBTREEINDENT\fR
  1052. or \fBTI\fR: Set the tree level indention column (3 .. 9) if possible.
  1053. Normally the tree level indention column is calculated dependent
  1054. on the number of screen columns and the maximal filesystem depth automatically
  1055. X.TP
  1056. X\fBVIDEOMODE\fR
  1057. or \fBVM\fR: Set using of video attributes.
  1058. X2 means use all possible attributes and their combinations.
  1059. X1 means use the attributes reverse and underline only.
  1060. X0 means don't use any video attribute.
  1061. X.TP
  1062. X\fBFILELINES\fR
  1063. or \fBFL\fR: Number of lines of the file window on the \fItree screen\fR
  1064. X(1 .. 9, default 3)
  1065. X.TP
  1066. X\fBHISTSIZE\fR
  1067. or \fBHS\fR: Maximal number of shell commands which are hold
  1068. in the shell commands history list (6 .. 99, default: 22)
  1069. X.TP
  1070. X\fBEDITOR\fR
  1071. or \fBED\fR: Program for editing files.
  1072. When redefining the editor variable don't forget to
  1073. check and set or unset the editopts variable for
  1074. editor options
  1075. X.TP
  1076. X\fBEDITOPTS\fR
  1077. or \fBEO\fR: File editor options
  1078. X.TP
  1079. X\fBPAGER\fR
  1080. or \fBPG\fR: Program for viewing files.
  1081. When redefining the pager variable don't forget to
  1082. check and set or unset the pageopts variable
  1083. for pager options
  1084. X.TP
  1085. X\fBPAGEOPTS\fR
  1086. or \fBPO\fR: File pager options
  1087. X.TP
  1088. X\fBXDUMPER\fR
  1089. or \fBXD\fR: Program for hexdumping files.
  1090. When redefining the hexdumper variable don't forget to
  1091. check and set or unset the xdumpopts variable
  1092. for hexdumper options
  1093. X.TP
  1094. X\fBXDUMPOPTS\fR
  1095. or \fBXO\fR: File hexdumper options
  1096. X.TP
  1097. X\fBLPRINTER\fR
  1098. or \fBLP\fR: Program for printing files or sending files to the
  1099. printer spooling system.
  1100. When redefining the lineprinter variable don't forget to
  1101. check and set or unset the lprintopts variable
  1102. for lineprinter options
  1103. X.TP
  1104. X\fBLPRINTOPTS\fR
  1105. or \fBLO\fR: Printer options
  1106. X.TP
  1107. X\fBBACKUP\fR
  1108. or \fBBK\fR: Program or shell script for backing up a directory or tree
  1109. X.TP
  1110. X\fBBACKUPOPTS\fR
  1111. or \fBBO\fR: Backup options
  1112. X.TP
  1113. X\fBSHELL\fR
  1114. or \fBSH\fR: Interactive shell for shell escape
  1115. X.TP
  1116. X\fBTREECMD1..9\fR
  1117. or \fBT1..9\fR: User defined \fItree screen\fR commands 1 .. 9
  1118. X.TP
  1119. X\fBFILECMD1..9\fR
  1120. or \fBF1..9\fR: User defined \fIfile screen\fR commands 1 .. 9
  1121. X.PP
  1122. Variables are set with a line '\fBvariable=value\fR'
  1123. or '\fBshorthand=value\fR'
  1124. X(i.e. '\fBtreecmd1=ps -ef\fR' or '\fBt1=ps -ef\fR')
  1125. and unset with a line '\fBvariable=\fR' or '\fBshorthand=\fR'
  1126. X(i.e. '\fBt1=\fR').
  1127. When defining user tree or file commands some sprintf
  1128. like format characters lead in by a percent sign (\fB%\fR) have a
  1129. special meaning and are expanded before the command is executed.
  1130. XFor further information about the command line format see the
  1131. section \fIline formats\fR below.
  1132. X.br
  1133. The last sharp sign (\fB#\fR) in a variable definition is used as leadin
  1134. for a menu item of the defined user file or tree command.
  1135. XExample: the variable definition '\fBfc1=wc -l %F #Count\fR' for the user
  1136. defined file command 1 is expanded to '\fBwc -l filename\fR'
  1137. and in the user command file menu '\fBCount\fR' is displayed
  1138. behind menu item 1.
  1139. X.SH FILETYPE COMMANDS
  1140. X.LP
  1141. On \fIfile screen\fR you can execute a file or a command on it
  1142. with the \fButree\fR execute command (\fBx\fR).
  1143. You are requested for parameters if the current file is executable,
  1144. for a command to execute on the
  1145. current file if it is not executable.
  1146. XFor a type of file you can define so called \fIfiletype commands\fR
  1147. which are called if the current file matches a given file pattern.
  1148. X.br
  1149. XFiletype commands can be set and unset at startup in
  1150. the startupfile \fB$HOME/.utree\fR,
  1151. with the commandline option \fB-d\fR
  1152. or the filetype command (\fB:\fR) similar
  1153. to setting and unsetting variables.
  1154. XFiletype commands are set with a line like '\fBfiletype:command\fR'
  1155. X(i.e. '\fB*.c:cc -c -O\fR').
  1156. The command (i.e. '\fBcc -c -O\fR') is then executed
  1157. if the current file matches the given file pattern
  1158. X(i.e. '\fB*.c\fR' for a C source file ending with '\fB.c\fR').
  1159. XFiletype commands are unset with a line '\fBfiletype:\fR'
  1160. X(i.e. '\fB*.c:\fR').
  1161. X.br
  1162. When defining filetype commands some sprintf like format characters
  1163. lead in by a percent sign (\fB%\fR) have a special meaning and are
  1164. expanded before the command is executed. For further information
  1165. about file patterns and the format line
  1166. characters and her meaning
  1167. see the sections \fIfile patterns\fR
  1168. and \fIline formats\fR below.
  1169. X.SH LINE FORMATS
  1170. X.LP
  1171. When defining a user tree or file command
  1172. or a filetype command some sprintf like format line
  1173. characters are known and expanded before the command is executed.
  1174. These format line characters and their meaning are:
  1175. X.sp
  1176. X.TP 20
  1177. X\fB%B\fR or \fB%b\fR
  1178. is expanded to the basename (filename without extension)
  1179. of the current file or directory
  1180. X.TP
  1181. X\fB%D\fR or \fB%d\fR
  1182. is expanded to the full pathname of the current directory
  1183. X.TP
  1184. X\fB%F\fR or \fB%f\fR
  1185. is expanded to the filename of the current file or directory
  1186. X.TP
  1187. X\fB%H\fR or \fB%h\fR
  1188. is expanded to the pathname of your home directory
  1189. X.TP
  1190. X\fB%P\fR or \fB%p\fR
  1191. is expanded to the full pathname of the current file or directory
  1192. X.TP
  1193. X\fB%R\fR or \fB%r\fR
  1194. is expanded to the pathname of the root directory
  1195. from where \fButree\fR was started
  1196. X.TP
  1197. X\fB%S\fR or \fB%s\fR
  1198. is expanded to additional parameter(s) for a command which are requested
  1199. before the command is executed
  1200. X.PP
  1201. The command line '\fBcommand %s %f >%b.out\fR' i.e. is expanded before execution
  1202. to '\fBcommand parameters filename >basename.out\fR'
  1203. with filename of the current file or directory (\fB%f\fR),
  1204. basename.out of the current file or directory (\fB%b.out\fR)
  1205. and additional parameters (\fB%s\fR)
  1206. which are requested before command execution.
  1207. X.br
  1208. XFor further information about tree, file and filetype commands
  1209. see the sections \fIvariables\fR and \fIfiletype commands\fR.
  1210. X.SH FILE PATTERNS
  1211. X.LP
  1212. Some commands (list, find, grep, tag or untag) require
  1213. file patterns for matching files using some
  1214. special (or meta) characters.
  1215. X.br
  1216. Shell like filename pattern matching interprets the
  1217. following meta characters:
  1218. X.sp
  1219. X.TP 20
  1220. X\fB*\fR
  1221. matches all characters in a filename
  1222. X.TP
  1223. X\fB?\fR
  1224. matches one character in a filename
  1225. X.TP
  1226. X\fB[class]\fR
  1227. matches one character from a character class.
  1228. A character class includes all characters enclosed between
  1229. the opening and closing brackets (\fB[\fR and \fB]\fR).
  1230. If in a class definition a minus sign (\fB-\fR) is found
  1231. between two other characters
  1232. this means the range from the character before and the
  1233. character behind the minus sign.
  1234. If the first character of a class definition is a exclamation mark
  1235. X(\fB!\fR) this means matching of all characters excluded those
  1236. defined in the class, i.e.
  1237. X.TP
  1238. X[abc]
  1239. matches the characters 'a', 'b' and 'c'
  1240. X.TP
  1241. X[a-z_]
  1242. matches the characters from 'a' to  'z' and '_'
  1243. X.TP
  1244. X[!a-z_]
  1245. matches all characters except 'a' to 'z' and '_'
  1246. X.PP
  1247. XFile size pattern matching interprets the following
  1248. meta characters:
  1249. X.sp
  1250. X.TP 20
  1251. X\fB=size\fR
  1252. matches all files of size \fBsize\fR
  1253. X.TP
  1254. X\fB!size\fR
  1255. matches all files not of size \fBsize\fR
  1256. X.TP
  1257. X\fB>size\fR
  1258. matches all files larger than \fBsize\fR
  1259. X.TP
  1260. X\fB<size\fR
  1261. matches all files smaller than \fBsize\fR
  1262. X.PP
  1263. Size may be specified in bytes (\fBb\fR, default),
  1264. kilo bytes (\fBk\fR) or mega bytes (\fBm\fR),
  1265. i.e. '\fB>2k\fR' matches all files larger than
  1266. X2 kilo bytes or 2048 bytes.
  1267. X.sp
  1268. X.PP
  1269. The additional file time pattern matching interprets the
  1270. following meta characters:
  1271. X.sp
  1272. X.TP 20
  1273. X\fB)time\fR
  1274. matches all files modified within \fBtime\fR
  1275. X.TP
  1276. X\fB(time\fR
  1277. matches all files not modified within \fBtime\fR
  1278. X.PP
  1279. Time may be specified in minutes (\fBm\fR),
  1280. hours (\fBh\fR, default), days (\fBd\fR) or weeks (\fBw\fR),
  1281. i.e. '\fB)2d\fR' matches all files modified within last 2 days.
  1282. X.sp
  1283. To combine shell like filename patterns and/or
  1284. additional file size and modification time patterns use
  1285. X.sp
  1286. X.TP 20
  1287. X\fB&\fR
  1288. for \fBAND\fRing of patterns
  1289. X.TP
  1290. X\fB|\fR
  1291. for \fBOR\fRing of patterns
  1292. X.PP
  1293. If a character is preceeded by a backslash or enclosed in quotes
  1294. his interpretation is suppressed and he is used as he is.
  1295. X.SH KEY BINDINGS
  1296. X.LP
  1297. All defaults key bindings are listed in the section
  1298. X\fIkey naming conventions and default key bindings\fR above.
  1299. All supported function keys if defined in the termcap or
  1300. terminfo terminal database and their default bindings
  1301. are listed in the next section.
  1302. Rebindings of default keys or additional bindings
  1303. of other keys may be done in terminal dependent
  1304. startupfiles \fButree-TERM\fR in a global directory
  1305. containing \fButree\fR startupfiles or in
  1306. files \fB.utree-TERM\fR in your home directory where \fBTERM\fR denotes
  1307. the terminal type as defined in the environment variable \fBTERM\fR.
  1308. These startup files are built from lines
  1309. like \fB'key_sequence=utree_key'\fR
  1310. or \fB'key_sequence="string"'\fR.
  1311. Key_sequence describes the function key string,
  1312. utree_key the \fButree\fR key or function name,
  1313. a string enclosed in braces a string to insert
  1314. into the input buffer.
  1315. A comment lead in by a sharp sign (#) should
  1316. contain the name of the bound key.
  1317. XFor defining key sequences of function keys
  1318. control keys are defined with a
  1319. leading caret (^, i.e. ^x, ^? means DEL)
  1320. and some other special characters
  1321. may be defined lead in by a backslash (\e).
  1322. These escaped characters and their meaning are:
  1323. b backspace (^h),  f formfeed (^l),
  1324. n newline (^j), r return (^m), t tab (^i),
  1325. e or E escape (^[ or ESC) and s space.
  1326. If a backslash is followed from up to three
  1327. digits this defines an octal given character.
  1328. I.e. the definition '\ee^O\e003=END' binds the
  1329. keystring <ESCAPE> <CONTROL-O> <ASCII-3> to the
  1330. X\fButree\fR key or function END.
  1331. X.PP
  1332. The simplest way to define keys is to switch
  1333. to the \fIbindings screen\fR and there to do all bindings.
  1334. You have only to hit the key to bind and terminate
  1335. the key sequence with CR or NL.
  1336. Therefore CR or NL or key sequences containing CR or NL
  1337. cannot be bound on the \fIbindings screen\fR.
  1338. Then you have to enter the \fButree\fR name where the key
  1339. is to bind to.
  1340. You can use C-n and C-p to select the wanted name.
  1341. At last you should give a short comment to the
  1342. bound key(i.e. the key name) for documentation.
  1343. If you want to bind a key for insertion of a string
  1344. X(and so to bind function keys to simple letter commands)
  1345. you have to enter the string enclosed in braces.
  1346. I.e. the binding \fB'\eeh="h"'\fR binds the
  1347. key <ESCAPE> <h> to the string <h> and the
  1348. so called help.
  1349. Any bindings you have done on the \fIbindings screen\fR
  1350. are saved to a file \fB.utree-TERM\fR into your home directory
  1351. if the variable AUTOSAVE is set.
  1352. X.SH FUNCTION KEYS
  1353. X.LP
  1354. The following function keys are supported by \fButree\fR
  1355. and pre-bound at startup to appropriate functions
  1356. if they are defined in your system's termcap or terminfo database:
  1357. X.sp
  1358. X.TP 20
  1359. X\fBCursorRight\fR
  1360. Move forward (FORWARD, \fBC-f\fR)
  1361. X.TP
  1362. X\fBCursorLeft\fR
  1363. Move backward (BACKWARD, \fBC-b\fR)
  1364. X.TP
  1365. X\fBCursorUp\fR
  1366. Move up (PREVIOUS, \fBC-p\fR)
  1367. X.TP
  1368. X\fBCursorDown\fR
  1369. Move down (NEXT, \fBC-n\fR)
  1370. X.TP
  1371. X\fBHome/Begin\fR
  1372. Move to beginning (BEGIN, \fBC-a\fR)
  1373. X.TP
  1374. X\fBEnd\fR
  1375. Move to end (END, \fBC-e\fR)
  1376. X.TP
  1377. X\fBNextPage/PageDown\fR
  1378. Move one page down (NEXTPAGE, \fBC-v\fR)
  1379. X.TP
  1380. X\fBPrevPage/PageUp\fR
  1381. Move one page up (PREVPAGE, \fBC-w\fR)
  1382. X.TP
  1383. X\fBScrollUp\fR
  1384. Scroll one line up (UP, \fBC-u\fR)
  1385. X.TP
  1386. X\fBScrollDown\fR
  1387. Scroll one line down or delecte character (DOWN, \fBC-d\fR)
  1388. X.TP
  1389. X\fBInsert\fR
  1390. Change to directory (\fB>\fR) or
  1391. switch insert/overwrite mode (INSERT, \fBC-o\fR)
  1392. X.TP
  1393. X\fBDelete\fR
  1394. Change to parent directory (\fB<\fR)
  1395. or delete character under cursor like (DELETE, \fBC-h\fR)
  1396. X.TP
  1397. X\fBClear\fR
  1398. Refresh screen or input line (REFRESH, \fBC-l\fR)
  1399. X.TP
  1400. X\fBHelp\fR
  1401. Call the help menu (HELP, \fBC-r\fR)
  1402. X.TP
  1403. X\fBSelect\fR
  1404. Select and/or accept (SELECT, \fBCR,NL\fR)
  1405. X.TP
  1406. X\fBDo/Command\fR
  1407. Select and/or accept (SELECT, \fBCR,NL\fR)
  1408. X.TP
  1409. X\fBMark\fR
  1410. Set a mark (SETMARK, \fBC-@\fR)
  1411. X.TP
  1412. X\fBEnter\fR
  1413. Select and/or accept (SELECT, \fBCR,NL\fR)
  1414. X.PP
  1415. This function keys may be rebound
  1416. or other function keys may be bound
  1417. on the \fIbindings screen\fR.
  1418. XFor more information about key bindings
  1419. see the section \fBkey bindings\fR above.
  1420. X.SH ENVIRONMENT
  1421. X.LP
  1422. X.TP 20
  1423. X\fBUTREE\fR
  1424. Some boolean and numerical settings for \fButree\fR
  1425. X.TP
  1426. X\fBUTLIB\fR
  1427. Directory for \fButree\fR help pages and startup files
  1428. X.TP
  1429. X\fBHOME\fR
  1430. User's home directory
  1431. X.TP
  1432. X\fBTERM\fR
  1433. Terminal type
  1434. X.TP
  1435. X\fBEDITOR\fR
  1436. XFile editor
  1437. X.TP
  1438. X\fBPAGER\fR
  1439. XFile pager/viewer
  1440. X.TP
  1441. X\fBSHELL\fR
  1442. Interactive shell for shell escape
  1443. X.PP
  1444. X.SH FILES
  1445. X.LP
  1446. X.TP 20
  1447. X\fBHOME/.utreelist\fR
  1448. Tree list file of user's filesystem
  1449. X.TP
  1450. X\fBHOME/.utreehist\fR
  1451. History list of shell commands
  1452. X.TP
  1453. X\fBHOME/.utree\fR
  1454. User's \fButree\fR startup file
  1455. containing variables and filetype commands definitions
  1456. X.TP
  1457. X\fBUTLIB/utree\fR
  1458. Global \fButree\fR startup file
  1459. containing variables and filetype commands definitions
  1460. X.TP
  1461. X\fBUTLIB/utree-TERM\fR
  1462. Global key bindings for terminal type TERM
  1463. X.TP
  1464. X\fBHOME/.utree-TERM\fR
  1465. User's key bindings for terminal type TERM
  1466. X.TP
  1467. X\fBUTLIB/utree.help\fR
  1468. X\fBUtree\fR help pages
  1469. X.TP
  1470. X\fBBIN/utree.backup\fR
  1471. Backup shell script or program
  1472. X.TP
  1473. X\fBBIN/utree.mklist\fR
  1474. Create directory tree list shell script
  1475. X.TP
  1476. X\fBBIN/utree.prlist\fR
  1477. Display or print a formatted tree list file
  1478. X.PP
  1479. X\fBUTLIB\fR can be a system default directory containing
  1480. library files (i.e. /usr/local/lib)
  1481. defined at compile time or a directory defined in the
  1482. environment variable \fBUTLIB\fR.
  1483. X\fBBIN\fR is a public directory containing executable
  1484. files (i.e. /usr/local/bin) and should be
  1485. included in the command search path environment variable \fBPATH\fR.
  1486. X.SH SEE ALSO
  1487. X.LP
  1488. utree.prlist(1L)
  1489. X.br
  1490. cp(1) grep(1) ls(1) mv(1) rm(1)
  1491. X.br
  1492. du(1) mkdir(1) rmdir(1)
  1493. X.br
  1494. find(1) sh(1)
  1495. X.SH BUGS
  1496. X.LP
  1497. Changes in filesystem after shell escape or editor session
  1498. are not always detected.
  1499. X.br
  1500. Directory tree depth >32 may be confusing.
  1501. X.br
  1502. Screen sizes smaller than 80x24 may be confusing.
  1503. X.br
  1504. Symbolic links to directories may be confusing.
  1505. X.br
  1506. On most BSD systems changing owner and/or group of files
  1507. for normal users is not allowed.
  1508. X.SH AUTHOR
  1509. X.LP
  1510. Peter Klingebiel
  1511. X.SH COPYRIGHT
  1512. X.LP
  1513. X\(co 1991/1992 Peter Klingebiel & UNIX Magazin Munich
  1514. X.sp
  1515. Permission is granted to copy and distribute \fButree\fR in modified
  1516. or unmodified form, for noncommercial use, provided (a) this copyright
  1517. notice is preserved, (b) no attempt is made to restrict redistribution
  1518. of this file, and (c) this file is not distributed as part of any
  1519. collection whose redistribution is restricted by a compilation copyright.
  1520. X
  1521. END_OF_FILE
  1522. if test 43554 -ne `wc -c <'doc/utree.1'`; then
  1523.     echo shar: \"'doc/utree.1'\" unpacked with wrong size!
  1524. fi
  1525. # end of 'doc/utree.1'
  1526. fi
  1527. echo shar: End of archive 7 \(of 8\).
  1528. cp /dev/null ark7isdone
  1529. MISSING=""
  1530. for I in 1 2 3 4 5 6 7 8 ; do
  1531.     if test ! -f ark${I}isdone ; then
  1532.     MISSING="${MISSING} ${I}"
  1533.     fi
  1534. done
  1535. if test "${MISSING}" = "" ; then
  1536.     echo You have unpacked all 8 archives.
  1537.     rm -f ark[1-9]isdone
  1538. else
  1539.     echo You still need to unpack the following archives:
  1540.     echo "        " ${MISSING}
  1541. fi
  1542. ##  End of shell archive.
  1543. exit 0
  1544.