about summary refs log tree commit diff
SCOOP(1) General Commands Manual SCOOP(1)

scoopquery IRC logs

scoop [-Lgipqrsv] [-D date] [-F format] [-N network] [-T target] [-a time] [-b time] [-c context] [-d path] [-f format] [-h host] [-l limit] [-m regexp] [-n nick] [-t type] [-u user] [-w expr] [search]

scoop -S

The scoop utility queries the litterbox(1) IRC log database, matching events on the intersection of the criteria specified in arguments.

If standard output is a terminal, colored output is piped to PAGER with LESS=FRX if it is not already set.

The arguments are as follows:

date
Match events which occurred on date, of the format YYYY-MM-DD.
format
Format timestamps using the format string, similar to strftime(3). The default format is "%Y-%m-%dT%H:%M:%S".
Output timestamps in local time and interpret timestamps in -D, -a and -b as local time.
network
Match events from network.
Instead of performing a query, launch the sqlite3(1) shell for the database.
target
Match events (of type kick, nick, ban or unban) with the target nickname or mask target.
time
Match events which occurred after time, of the format YYYY-MM-DD HH:MM:SS.
time
Match events which occurred before time, of the format YYYY-MM-DD HH:MM:SS.
context
Match events from context, either a channel or query name.
path
Set the database path. The default path is as in litterbox(1).
format
Set the output format to one of plain, color or irc. The default format is color if standard output is a terminal, plain otherwise. The irc format outputs events as IRC protocol with tags.
Group events by network and channel or query name. Implies -s.
host
Match events from users with the hostname host.
Use case-insensitive regular expression matching with -m.
limit
Limit the number of events matched, ordered by most recently inserted. Implies -s.
regexp
Match events with messages matching the modern regular expression regexp. See re_format(7). To match case-insensitively, use with -i.
nick
Match events from users with the nickname nick.
Match only events from channels.
Match only events from queries.
Output results in reverse order.
Sort the results from oldest to newest. By default events are output in the order they appear in the database.
types
Match events of the comma-separated list of types. The types are privmsg, notice, action, join, part, quit, kick, nick, topic, ban, unban.
user
Match events from users with the username user.
Print the expanded SQL query being used to standard error.
expr
Add the SQL expression expr to the clause of the query.
search
Match events using full-text search. The searchable columns are network, channel, query, nick, user, target, message.

The command to pipe terminal output to. The default is PAGER=less.

litterbox(1)

June McEnroe <june@causal.agency>

Send mail to <list+litterbox@causal.agency> or join #ascii.town on irc.tilde.chat.

May 18, 2021 OpenBSD 7.4