home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / MARK_WC2.LZH / LIB / HELPFILE < prev    next >
Text File  |  1988-04-27  |  20KB  |  544 lines

  1. @.
  2. . -- execute command file in current shell
  3. Usage: . comfile
  4. Reads comfile as if it were typed in to the current level of msh.
  5. Commands such as `set' and `cd' in comfile have effect after comfile is done.
  6. @ar
  7. ar -- maintain archives
  8. Usage:    ar option[modifier] [ position ] archive [ member ... ]
  9. Options:
  10.     d    Delete given members
  11.     m    Move member to indicated position (default: end)
  12.     p    Print each member
  13.     q    Quick append--put members at end with no checking
  14.     r    Replace each member specified in the archive
  15.     t    Print a table of members (default: all)
  16.     x    Extract the specified members (default: all)
  17. Modifiers:
  18.     a    Place new member after 'position' in archive
  19.     b    Place new member before 'position' in archive
  20.     c    Suppress message when new archive is created
  21.     i    Insert new member before 'position' in archive
  22.     k    Preserve modify time of file (with options r, q, or x)
  23.     s    Update ranlib header even if not present (with options r, m, d)
  24.     u    Update--replace members only if newer than those in archive
  25.     v    Print extra information when used with certain options
  26. @as
  27. as -- assembler for 68000
  28. Usage:    as [ options ] file ...
  29. Options:
  30.     -g    Make all undefined symbols global
  31.     -l    Output assembly listing to standard output
  32.     -o dest    Rename output file 'dest' (default: 'l.out')
  33.     -x    Strip local symbols from symbol table
  34. @cat
  35. cat -- concatenate/print files
  36. Usage:    cat [ file ... ]
  37. File '-' indicates the standard input.
  38. If no 'file' is specified, the standard input is used.
  39. @cc
  40. cc -- C compiler
  41. Compiles files ending '.c'; assembles files ending in '.s';
  42. passes other options and files to the linker 'ld'.
  43. Usage:    cc [ options ] file ...
  44. Options:
  45.     -A        Run EDITOR if errors encountered (Default micro-emacs)
  46.     -c        Compile only--no link
  47.     -Dname[=value]    Tell cpp to define 'name' with 'value'
  48.     -E        Run cpp only and send its output to stdout
  49.     -f        Include floating point output routines in link
  50.     -Iname        Look for cpp include files in directory 'name'
  51.     -K        Keep intermediate files
  52.     -lname        Pass /lib/libname.a to linker
  53.     -M string    Use alternative machine versions
  54.     -N[p012sdlrt]string
  55.             Rename specified pass to 'string';
  56.             'p' indicates preprocessor, etc.
  57.     -q[p012s]    Quit after specified pass; 'p' indicates
  58.             preprocessor, etc.
  59.     -Q        Quiet option:  suppress all messages
  60.     -S        Produce assembly language output
  61.     -Uname        Tell cpp to remove any initial definition of 'name'
  62.     -V        Run verbosely; send to stdout messages on each phase
  63.     -Vname        Toggle variant 'Vname'.  See Lexicon for list of
  64.             of variants.
  65. @cd
  66. cd -- change directory
  67. Usage:    cd [ directory ]
  68. If no directory specified, $HOME is assumed.
  69. msh executes cd directly.
  70. @chmod
  71. chmod -- change mode of a file
  72. Usage:     chmod +modes file ...
  73.         or
  74.     chmod -modes file ...
  75. where '+' sets the mode and '-' clears it.
  76. The modes are as follows:
  77.     s - system file (hidden from normal directory searches)
  78.     h - hidden file (" ")
  79.     m - backed-up (shows up as "m" in ls -l)
  80.     w - write allowed (shows up as "w" in ls -l)
  81. @cmp
  82. cmp -- compare bytes of two files
  83. Usage:    cmp [ -ls ] file1 file2 [ skip1 skip2 ]
  84. Options:
  85.     -l    Print byte number and the bytes at each difference
  86.     -s    Return status (do not print anything)
  87. If 'file1' is '-', use standard input.
  88. If 'skip1' and 'skip2' are present, they indicate the number of bytes
  89. to skip before comparing in 'file1' and 'file2', respectively.
  90. @cp
  91. cp -- copy files
  92. Usage:    cp oldfile newfile
  93.     cp file ... directory
  94. The first usage copies 'oldfile' to 'newfile'; if newfile exists, its
  95. contents are replaced with those of 'oldfile'.
  96. The second usage usage copies a number of files into 'directory'; each
  97. file retains its old name.
  98. @cpp
  99. cpp -- C preprocessor
  100. Usage:  cpp [ option ] [ file ... ]
  101. Options: -Dname[=value]
  102.         Define 'name' to equal 'value'; same as '#define' directive.
  103.      -E    Strip comments and line numbers from source.
  104.      -Idirectory
  105.         Look for header files in 'directory'
  106.      -o name
  107.         Write output into file 'name'.  Default is 'l.out'.
  108.      -Q    run quietly
  109.      -Uvariable
  110.         Undefine 'variable'; same as '#undef' directive.
  111.      -V    Print messages about what cpp is doing
  112.      -3    Translate ANSI trigraphs in text
  113. @cursconf
  114. cursconf -- set cursor's configuration
  115. Usage:    cursconf task [period]
  116.     task:
  117.     0    hide the cursor
  118.     1    show the cursor
  119.     2    set cursor to blink
  120.     3    set cursor to steady
  121.     4    set the cursor to toggle every `period' frames
  122.     5    print the current blink rate on standard output
  123. @date
  124. date -- print/set date and time of day
  125. Usage:    date [ -u ] [ [yymmdd]hhmm[.ss] ]
  126. Options: -u    Print/set date in Greenwich Mean Time
  127.      -i    Print current time in setting format
  128. When used with no arguments, 'date' prints the time and date.  When used
  129. with arguments, it resets the date; for example, to reset the date and
  130. time to July 15, 1986, 2:47 PM, type: 'date 8607151447'.  "date" reads the
  131. keyboard clock and sets both the GEMDOS and keyboard clocks.
  132. @df
  133. df -- summarize how much of the disk is free.
  134. Usage:  df [ -a ] device
  135. Option:    -a    Print space left on all devices
  136. This commands prints the amount of space left on one or more physical
  137. devices.  When the command is given without an argument, it checks the
  138. current physical device; when the name of a physical device is given
  139. as an argument, df checks that device; and the option -a tells df to
  140. check all devices.
  141. @drvprs
  142. drvprs -- check if a drive is present in the system
  143. Usage:    drvprs [ -q ] device
  144. Option:      -q    Supress printing of drive present message
  145. This command checks for the presence of a drive and sets the msh variable
  146. "status" to -1 if it is not, otherwise sets it to 0.  If -q is not specified,
  147. a message is also printed on standard output.
  148. @diff
  149. diff -- summarize differences between two files
  150. Usage:    diff [ -b ] [ -c sym ] file1 file2
  151. Options:
  152.     -b    Ignore trailing blanks; all strings of blanks are equal
  153.     -c sym    Produce C pre-processor input conditionalized on 'sym'
  154. If either 'file1' or 'file2' is '\-', the standard input is used.
  155. If one of the files is a directory, then the other file name
  156. within that directory is used.
  157. @echo
  158. echo -- print/expand arguments
  159. Usage:    echo [ -n ] [ argument ... ]
  160. Option:    -n    Do not print terminal newline
  161. Copies all command arguments to the standard output.  Metacharacters
  162. and variables are expanded.
  163. @egrep
  164. egrep -- extended pattern search
  165. Usage:    egrep [ option ... ] [ pattern ] [ file ... ]
  166. Options:
  167.     -b    Each output line has the block number of the match
  168.     -c    Print only a count of the number of matching lines
  169.     -e    The next argument is the pattern
  170.     -f    The next argument is a file containing one pattern per line
  171.     -h    Suppress the printing of file names on matched lines
  172.     -l    Print only the names of files containing matches
  173.     -n    Print line number of file with each matched line output
  174.     -s    Suppress output, just return status
  175.     -v    Negate the sense of the match
  176.     -y    Lower-case letters in the pattern match upper- and lower-case
  177. If no 'file' is specified, the standard input is used.
  178. @equal
  179. equal -- check if two strings are the same
  180. Usage:    equal string1 string2
  181. Sets msh variable "status" to 0 if string1 and string2 are the same,
  182. otherwise, sets it to -1.
  183. @exit
  184. exit -- exit from msh
  185. Usage:    exit [ status ]
  186. exit closes the micro-shell msh and returns to the program that invoked
  187. it: the GEM desktop, another copy of msh, or a utility (e.g., MicroEMACS).
  188. The previous status is retained if none is specified.
  189. msh executes exit directly.
  190. @file
  191. file -- guess type of a file
  192. Usage:    file name ...
  193. @getcol
  194. getcol -- get a color map entry value
  195. Usage:    getcol position
  196. Prints color map value for position (0-15) to standard output.
  197. @getpal
  198. getpal -- get the current color palette
  199. Usage:    getpal
  200. Prints current color palette values to standard output.
  201. @getphys
  202. getphys -- get the current physical display base
  203. Usage:    getphys
  204. Prints current screen display base to standard output.
  205. @getrez
  206. getrez -- get screen resolution
  207. Usage:    getrez
  208. Prints current resolution to standard output.
  209. @help
  210. help -- print concise command description
  211. Usage:    help [ option ... ] [ command ... ]
  212. Options:
  213.     -V    Verbose -- print informational messages
  214.     -R    Rebuild -- rebuild index file if missing or older than helpfile
  215. @hidemouse
  216. hidemouse -- hide the mouse pointer
  217. Usage:    hidemouse
  218. @htom
  219. htom -- convert screen image from high to medium resolution
  220. Usage:    htom
  221. Rearranges the bits of the screen display from high to medium resolution.
  222. @if
  223. if -- conditionally execute a command
  224. Usage:    if (command) (true-commands) (false-commands)
  225. Execute command. if command has a return status = 0, execute true-commands
  226. else execute false-commands.
  227. @inherit
  228. inherit -- inherit msh variables from parent shell
  229. Usage:    inherit variable ...
  230. Sets msh variable to value in next higher shell invocation, if any.
  231. @is_set
  232. is_set -- check to see if shell variable is set.
  233. @kbrate
  234. kbrate -- set keyboard repeat rate
  235. Usage:    kbrate start interval
  236. Set the key repeat delay to `start' ticks, and the repeat interval to
  237. every `interval' ticks after that.  Each tick is 20ms long.
  238. @kick
  239. kick -- force media change on floppy
  240. Usage:    kick drive
  241. Forces the media change status on a floppy.
  242. @lc -- produce a wide listing
  243. Usage:    lc [-adrtlwf]
  244. Same as "ls -wf".  Option -l overrides the wide listing function.
  245. See "ls".
  246. @ld
  247. ld -- link relocatable object files
  248. Usage:    ld [ option ... ] file ...
  249. Options:
  250.     -d    Define commons (even if undefined symbols)
  251.     -e ent    Set entry point to given symbol or octal number
  252.     -i    Bind output sepid
  253.     -lname    Use standard library libname.a; e.g., -lm calls 'libm.a'
  254.     -n    Bind output shared, force -i option
  255.     -o file    Write output into 'file' (default: 'l.out')
  256.     -r    Retain relocation information
  257.     -s    Discard symbol table
  258.     -u sym    Undefine 'sym' (forcing library search)
  259.     -X    Discard C internal local symbols
  260.     -x    Discard all local symbols
  261. @ls
  262. ls -- list directory contents
  263. Usage:    ls [ -adlrt ] [ file ... ]
  264. When used without options or arguments, ls prints on stdout the names
  265. of all files in the current directory, sorted alphabetically.  If used
  266. with argument 'file', it prints only 'file' if found, or an error message
  267. if not.
  268. Options:
  269.     -a    List all files (including '.' and '..')
  270.     -d    Treat directories like files
  271.     -f    Flag directories with trailing "\"
  272.     -l    Use long format; give full information on file type and date
  273.     -r    Reverse the order of all sorting
  274.     -t    Sort by times, normally newest first (default: sort by name)
  275.     -w    produce wide listing (defeated by l)
  276. @ltom
  277. ltom -- convert screen image from low to medium resolution
  278. Usage:    ltom
  279. Rearranges the bits of the screen display low to medium resolution.
  280. @make
  281. make -- program building discipline
  282. Usage:    make [ option ... ] [ argument ... ] [ target ... ]
  283. make can also be invoked from the GEM-DOS desktop.  It reads and
  284. executes the instructions in 'makefile', and cannot accept options.
  285. Options:
  286.     -d    Debug: verbose description of everything it does.
  287.     -f file    Make instructions are in 'file' (default: [mM]akefile)
  288.     -i    Ignore command error returns
  289.     -n    Test: do all but execute commands
  290.     -p    Print macro definitions and target descriptions
  291.     -q    Only return exit status (zero if files up to date)
  292.     -r    Ignore built-in rules
  293.     -s    Do not print command lines when executed
  294.     -t    Update times of files without regenerating object modules
  295. @me
  296. MicroEMACS -- interactive screen editor
  297. Usage:    me [ options ] [ file ... ]
  298. Options:
  299.     -e errorfile
  300.         load error buffer with errorfile
  301.     -t    Use 50 line mode on monochrome system
  302. For a summary of commands, see the Lexicon.
  303. @mf
  304. mf -- check amount of memory left
  305. This command checks the amount of volatile memory not
  306. being used.  It takes no options.
  307. @mkdir
  308. mkdir -- make a new directory
  309. Usage:    mkdir directory ...
  310. @mousehidden
  311. mousehidden -- get mouse hidden count
  312. Usage:    mousehidden
  313. Prints mouse hidden count to standard output.
  314. @msh
  315. msh -- command processor
  316. Usage: command [ arguments ] [ redirection ]
  317. The characters * ? [ ] specify patterns that match file names.
  318. Each 'token', unless quoted, is checked for substitutions.
  319. @mshversion
  320. mshversion -- display current msh release version
  321. Usage:    mshversion
  322. Prints the version number of the release which the version of
  323. msh that is running is from.
  324. @msleep
  325. msleep -- suspend execution for an interval
  326. Usage:    msleep interval
  327. Suspends processing for `interval' milliseconds.
  328. @mtoh
  329. mtoh -- convert screen image from low to medium resolution
  330. Usage:    mtoh
  331. Rearranges the bits of the screen display from medium to high resolution.
  332. @mtol
  333. mtol -- convert screen image from low to medium resolution
  334. Usage:    mtol
  335. Rearranges the bits of the screen display from medium to low resolution.
  336. @mv
  337. mv -- move/rename files and directories
  338. Usage:    mv oldfile newfile
  339.     mv file ... directory
  340. The first usage renames 'oldfile' to 'newfile'; if 'newfile' already exists,
  341. it is removed and 'oldfile' given its name.
  342. The second usage moves one or more files into 'directory'; each file retains
  343. its old name.
  344. @mwtomw
  345. mwtomw -- convert old MWC executable to new format
  346. Usage:    mwtomw file [...]
  347. Moves the Mark Williams n.out header from the end of the executable image to
  348. the GEMDOS symbol segment.  This allows the Mark Williams utilities nm, size,
  349. strip, and db to access the symbol tables and header information from
  350. executables created with MWC versions prior to 3.0.
  351. @nm
  352. nm -- print symbol table for executable program or archive
  353. Usage:    nm [ options ] [ file ... ]
  354. Options:
  355.     -a    Print all symbols
  356.     -d    Print only definitions
  357.     -g    Print only global symbols
  358.     -n    Sort numerically (default: sort by name)
  359.     -o    Prepend file or member name to each line
  360.     -p    Print in symbol table order (no sort)
  361.     -r    Reverse order of sort
  362.     -t    Append type string to each symbol
  363.     -u    Print undefined symbols
  364.     -x    Print numeric values in octal (default: hexadecimal)
  365. @not
  366. not -- logical negation for evaluation
  367. Usage:    not (expression)
  368. Executes expression then sets msh variable `status' to logical negation
  369. of the returned status from expression.
  370. @od
  371. od -- file dump
  372. Usage:    od  [ options ]  [ file ]  [ [ + ] offset[.][b] ]
  373. Options:
  374.     -b    Dump bytes in the hexadecimal
  375.     -c    Dump bytes as ASCII characters
  376.     -d    Dump words in decimal
  377.     -o    Dump words in octal
  378.     -x    Dump words in hexadecimal
  379. The offset must be preceded by '+' if 'file' is omitted.
  380. The offset is decimal if '.' is present;
  381. 'b' implies 512-byte blocks instead of bytes.
  382. @pr
  383. pr -- paginate and print files
  384. Usage:    pr [ options ] [ file ... ]
  385. Options:
  386.     +n    Skip the first 'n' pages of input before printing
  387.     -n    Print the input in 'n' columns
  388.     -h    The next argument is the header (default: file name)
  389.     -ln    Page size is set to 'n' lines (default: 66)
  390.     -m    Print each input 'file' in a separate column
  391.     -n    Number the output lines
  392.     -sc    Separate each column with character 'c'
  393.     -t    Suppress top and bottom margins and header
  394.     -wn    Page width is set to 'n' columns (default: 80; maximum: 256)
  395. A 'file' named '-' means standard input.
  396. @pwd
  397. pwd -- print current working directory
  398. Usage:    pwd
  399. Warning: This is currently not a binary built-in, but is set up in .cmd by the
  400. profile.  It may not be available in shells spawned from the other programs.
  401. @rm
  402. rm -- remove files
  403. Usage:    rm file ...
  404. @rmdir
  405. rmdir -- remove directory
  406. Usage:    rmdir directory ...
  407. @rsconf
  408. rsconf -- configure rs232 port
  409. Usage:    rsconf speed flow ucr rsr tsr scr
  410. See the Lexicon for details.
  411. @set
  412. set -- set/display an msh variable
  413. Usage:  set [ VARIABLE=value ]
  414. Using 'set' without an argument displays all msh variables already set.
  415. msh executes set directly.
  416. @setcol
  417. setcol -- set color map table entry
  418. Usage:    setcol index value
  419. Sets colormap entry `index' to `value'.
  420. @setenv
  421. setenv -- set/display an environmental variable
  422. Usage:  setenv VARIABLE=value
  423. Using 'setenv' without an argument displays all environmental variables
  424. already set.
  425. msh executes setenv directly.
  426. @setpal
  427. setpal -- set color palette
  428. Usage:    setpal val0 ... val15
  429. Sets the color palette to the values specified.
  430. @setphys
  431. setphys -- set physical display base
  432. Usage:    setphys address
  433. Sets the screen base to address.
  434. @setprt
  435. setprt -- set printer configuration
  436. Usage:    setprt configuration
  437. See Lexicon for more information.
  438. @setrez
  439. setrez -- set display resolution
  440. Usage:    setrez res
  441. Set screen resolution to `res': 0 = high, 1 = medium, 2 = low
  442. @show
  443. show -- display a screen image file
  444. Usage:    show picture
  445. @size
  446. size -- print size of an object file
  447. Usage:    size [ -ctx ] [ file ... ]
  448. Option:    -c    Print size of common areas
  449.     -t    Print total size of each segment summed over all files
  450.     -x    Print the total size in octal rather than hexadecimal
  451. @sleep
  452. sleep -- stop executing for a specified time
  453. Usage:    sleep seconds
  454. msh executes sleep directly.
  455. @snap
  456. snap -- create a disc file of the current screen image
  457. Usage:    snap picture.ext
  458. Creates a picture file in Degas(tm), Neochrome(tm), or COLR-Object Editor(tm)
  459. bitmap file format, based on file extension. (PIx, NEO, or MUR, respectively)
  460. @sort
  461. sort -- sort lines of text
  462. Usage:    sort [ options [modifiers] ] [ [ +beg [ -end ] ] ... [ file ... ]
  463. Options:
  464.     -c    Check if input is already ordered
  465.     -m    Merge already-sorted input files
  466.     -o name    Write output into 'name' rather than standard output
  467.     -tc    Use 'c' to separate columns rather than white space
  468.     -u    Output only records for which keys are unique
  469. Options for key variables:
  470.     -b    Ignore leading white space in fields
  471.     -d    Dictionary ordering for keys
  472.     -f    Fold upper case into lower case in key comparison
  473.     -i    Ignore control characters in key comparison
  474.     -n    Numeric comparison
  475.     -r    Reverse sort ordering, i.e., sort from largest to smallest
  476. Position:
  477.     +m.nf    Key starts 'm' fields into record and 'n' characters
  478.         into that field;  'f' may contain optional flags from
  479.         the above key options which apply only to that positional
  480.     -m.nf    Optional ending position of key (same form as above)
  481. If no position options are used, entire line is used as key.
  482. If no 'file' is given, the standard input is sorted.
  483. @tail
  484. tail -- print the end of a file
  485. Usage:    tail [ +n[bcl] ] [ file ]
  486.     tail [ -n[bcl] ] [ file ]
  487. Options:
  488.     +n    Print first 'n' lines of a file
  489.     -n    Print last 'n' lines of a file
  490.     b    'n' is in blocks rather than in lines
  491.     c    'n' is in characters (bytes) rather than lines
  492.     l    'n' is in lines (default)
  493. If no option is specified, tail prints the last ten lines of 'file'.
  494. @time
  495. time -- time the execution of a command
  496. Usage:    time "command"
  497.     time
  498. If used alone, prints the current date and time.
  499. @touch
  500. touch -- update modification time of a file
  501. Usage:    touch [ -c ] file ...
  502. Option:    -c    Do not create 'file' if it does not exist
  503. @uniq
  504. uniq -- remove/count repeated lines in a sorted file
  505. Usage:    uniq [ options ] [ infile [ outfile] ]
  506. Options:
  507.     -c    Print duplication count with lines
  508.     -d    Print only duplicated lines
  509.     -u    Print only non-repeated lines
  510.     -n    Skip 'n' fields during comparison
  511.     +n    Skip 'n' characters (after skipping fields)
  512. By default, uniq behaves as if both -d and -u were specified.
  513. @unset
  514. unset -- erase an msh variable
  515. Usage: unset variable
  516. @unsetenv
  517. unsetenv -- erase an environmental variable
  518. Usage: unsetenv variable
  519. @version
  520. version -- read/create a version number
  521. Usage:  version executable ...
  522.     version directory executable sourcefile ...
  523. In the first usage, version reads the 'executable  and prints its
  524. version number on stdout.
  525. In the second usage, version looks in 'directory' for 'sourcefile',
  526. then writes in 'directory' a brief c-language module that, when
  527. compiled and linked with 'sourcefile', inserts a unique version number
  528. into 'executable'.  It does not matter if 'executable' exists.
  529. @wc
  530. wc -- count words, lines, and characters in files
  531. Usage:    wc [ -clw ] [ file ... ]
  532. Options:
  533.     -c    Print count of characters
  534.     -l    Print count of lines
  535.     -w    Print count of words
  536. If no 'file' is given, wc uses the standard input.
  537. If more than one 'file' is given, wc also prints a total for all files.
  538. @while
  539. while -- msh loop construct
  540. Usage:    while (command) (commands)
  541. Repeatedly execute `command' until the msh variable `status' is non-zero.
  542. For each time `command' results in a zero status, execute `commands'.
  543. @
  544.