a.1.md 1.4 KB

% a(1) % dm9pZCAq

NAME

a - manage all kind of archives with one interface

SYNOPSIS

a [OPTIONS] -- <subcmd> <args...>

OPTIONS

-v

: verbose

-V

: print version

-h

: show this help

-n

: dry run (see MISC INFO section)

-e <ext:str>

: set custom extension

-o <dir:path>

: set output directory (default: .)

-f <file:path>

: set output file (only for {de,}compression of single files)

-T <threads:int>

: set number of threads (for {de,}compressors that supports it)

-M <limit:str>

: set memory limit (for {de,}compressors that supports it)

SUBCOMMANDS

c <archive> <file...>

: create <archive> with files <file...>

x <archive>

: extract files from <archive>

l <archive>

: list contents of <archive>

EXAMPLE

# create zip archive with file1 file2 file3

a c archive.zip file1 file2 file3


# list content of archive

a l archive.tar.gz


# extract files from archive.zip as if it were 7z archive to /tmp directory
# and be verbose about extracting files

a -e 7z -v -o /tmp x archive.zip

MISC INFO

list subcmd for single compressed files will decompress and print it's content

# these commands are the same

a l /proc/config.gz > config

a -f config x /proc/config.gz

dry run (-n) output should be interpretable for posix compliant shell, so you can do something like that

a -nf config x /proc/config.gz | sh