| APC(1) | General Commands Manual | APC(1) |
apc — audio player
client
apc |
[command [arguments ...]] |
The apc utility connects to
aps(1) and sends the given commands,
printing their output (with the exception of the status line which, if
‘ok’, is suppressed.)
A command passed as arguments to apc is
processed as described in Caret
Handling, if no command is given as an argument,
apc reads commands from the standard input until EOF
occurs.
If caret (‘^’) is the first character that appears
in the final argument given to apc, it is removed.
If there are no more characters in the argument, the argument is replaced by
arguments taken from the standard input, one per line, until EOF is
encountered. (It is an error to have no arguments from stdin in this
case.)
The apc utility exits 0 on success,
and >0 if an error occurs.
Sort the items in the queue:
$ apc list | sort | apc truncate
^Reorder items matching ‘regex’ to come next in the queue:
$ apc remove /regex | apc add
^Add ‘^caret’ to the queue:
$ apc add ^^caretJacob R. Edwards <jacob@jacobedwards.org>
| May 26, 2023 | jacob |