av: View or Print "anything". v0.4 Copyright (c) 1995, 1996 Karl J. Runge Usage: av [] [] where can be: - (from defined suffix without ".", e.g. -tex) -s pretend suffix is . -mt, Use Mime . -v Force viewing only. -q Be quiet. -m Do Mime only. -uu,-UU uuencode file with "Content-Type:" header for inclusion in an email. Makes semi-MIME compliant *section*. -uuz apply "gzip -9" before uuencoding. -uud Tar up, compress, and uuencode directory . -content Only return the "Content Type: " data. -remove Remove sourcefile upon completion. -t copy file to tmp first. -viewers List viewer commands needed. -wait wait for each view to finish before proceeding to next. -help Print this help. may be stdin. If using stdin with -m, program "metamail" is used. Also: av -all [] [] perform "av " on each file in . If is empty, all regular files in current dir are used. -aw is a synonym for -all -wait ----------------------------------------------------------------------------- In general, use "av" for viewing and "ap" for printing, "avm" for "av -m" (uses Mimetype files only). (installer's note: just make symbolic links to "ap" and "avm") Uses user defined type directives, placed in top portion of this program file: "./av" along with magic detectors to process files for viewing or printing. Also uses mimetypes: "/home/runge/.mime.types", and mailcap: "/home/runge/.mailcap" to aid in determining file types. User defined suffixes: .html .txt .rfc822 .eml .n1fwd .tex .dvi .mid .man .1 .tar .tgz .tar.gz .tar.Z .tar.bz2 .zip .rpm .deb .uu .ud .ps .pdf .rtf .ram .swf .plt .f .C .c .h .pl .tcl .sh Bugs: Does not make a true MIME compatible file as with "mmencode" or "mailto", just makes a possibly acceptable subsection. If .mime.types must be used there is no way to print. In fact, if that file has extra functionality, av will most likely fail. See Also: multi_mime -help mailf -help