=========================================================================
define .EX/.EE (for multiline user-command examples; normal Courier font)
.... =========================================================================
=========================================================================
=========================================================================
e Extract files to current directory
l[t|b] List archive [technical format, bare format]
p Print file to stdout
t Test archive files
v[t|b] Verbosely list archive [technical format, bare format]
x Extract files with full path
=========================================================================
- Stop switches scanning
.TP
.B -ac
Clear Archive attribute after compression or extraction
-ad Append archive name to destination path
-ap<path> Set path inside archive
-c- Disable comments show
-cfg- Disable read configuration
-cl Convert names to lower case
-cu Convert names to upper case
-dh Open shared files
-ep Exclude paths from names
-ep3 Expand paths to full including the drive letter
-f Freshen files
-id[c,d,p,q] Disable messages. c-copyright, d-'done' message, p-percentage, q-be completely quiet
-ierr Send all messages to stderr
-inul Disable all messages
.TP
.B -isnd
Enable terminal bell
.TP
.B -ioff
Turn PC off after completing an operation
-kb Keep broken extracted files
-n<file> Include only specified file
-n@ Read file names to include from stdin
-n@<list> Include files in specified list file
-o+ Overwrite existing files
-o- Do not overwrite existing files
.TP
.B -oc
Set NTFS Compressed attribute
-or Rename files automatically
-ow Save or restore file owner and group
-p[password] Set password
-p- Do not query password
-r Recurse subdirectories
.TP
.B -ri<P>[:<S>]
Set priority (0-default,1-min..15-max) and sleep time in ms
-sl<size> Process files with size less than specified
-sm<size> Process files with size more than specified
-ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
-tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
-tn<time> Process files newer than <time>
-to<time> Process files older than <time>
-ts<m,c,a>[N] Save or restore file time (modification, creation, access)
-u Update files
-v List all volumes
-ver[n] File version control
-vp Pause before each volume
-x<file> Exclude specified file
-x@ Read file names to exclude from stdin
-x@<list> Exclude files in specified list file
-y Assume Yes on all queries
=========================================================================
.EX unrar x letters
To extract all members of letters.rar into the current directory only:
.EX unrar e letters
To test letters.rar:
.EX unrar t letters
To extract to standard output all members of letters.rar whose names end in .tex piping the output into more(1):
.EX unrar p -inul letters '*.tex' | more
To extract the binary file paper1.dvi from archive articles.rar to standard output and pipe it to a printing program:
.EX unrar -p -inul articles paper1.dvi | dvips
To extract all FORTRAN and C source files--*.f, *.c, *.h, and Makefile--into the /tmp directory:
.EX unrar source.rar "*.[fch]" Makefile /tmp
To extract any such files but convert any uppercase MS-DOS or VMS names to lowercase:
.EX unrar -cl source.rar "*.[fch]" Makefile /tmp
To extract newer versions of the files already in the current directory and to create any files not already there:
.EX unrar x -u -o+ sources.rar
=========================================================================
RAR Unrar reads the switches from RAR, unless the commandline option -cfg- is given. Theese two examples do the same thing:
.EX unrar x -u -o+ sources.rar RAR='-u -o+' unrar x sources.rar
=========================================================================
.rarrc Unrar reads the switches from .rarrc unless commandline option -cfg- is given. Unrar goes sequentially through theese directories and reads first (and only first) .rarrc found. .EX $HOME/.rarrc (if $HOME is defined) /etc/.rarrc /etc/rar/.rarrc /usr/lib/.rarrc /usr/local/lib/.rarrc /usr/local/etc/.rarrc
rarrc should consist of lines in the form switches=<switches>. For example: .EX switches=-y
=========================================================================
=========================================================================