UNSCOOP(1)
π UNSCOOP(1) β the import-IRC-logs girlie β¨
okay bestie, welcome to unscoop β General Commands Manual energy, but make it a group chat π«Ά
πΈ NAME πΈ
unscoop β she imports IRC logs, that's her whole thing π
β¨ SYNOPSIS β¨
unscoop [-v] [-N network] [-c context] [-d path] [-f format] file ...
unscoop -D [-d path]
π¦ DESCRIPTION π¦
so the unscoop utility imports plain text IRC logs into the litterbox(1) database. that's it, that's the job, and she ate π₯
here's the cute part: network and channel-or-query names can be inferred from file paths, so like... run unscoop from the log directory root, mkay? that's where the magic happens β¨
the current path being imported gets printed to standard output. progress based on total file size goes to standard error. two streams, two vibes, no drama π
the arguments are as follows:
-Dβ Delete duplicate events from overlapping imports and exit. ngl this one requires SQLite version 3.25.0 or newer, no cap. π-Nnetwork β override the network name of the imported logs π-ccontext β override the channel or query name of the imported logs. heads up: names beginning with#or&are assumed to be channels π-dpath β set the database path, which must have been initialized bylitterbox(1). the default path is as inlitterbox(1)π-fformat β set the input log format. default isgenericβ-vβ printSQL INSERTstatements on standard error. yep, she'll spill everything π
π§ THE FORMATS (a whole menu, obsessed) π§
π catgirl
import logs from the catgirl(1) IRC client π
find ~/.local/share/catgirl/log \
-type f -name '*.log' -print0 |
xargs -0 unscoop -f catgirl
π generic
import logs using generic matchers. network and context names are inferred from paths of the form network/context/*. events of the following formats are matched:
[timestamp] <nick> privmsg
[timestamp] -nick- notice
[timestamp] * nick action
πΈ irc
import logs formatted as IRC protocol messages tagged with server-time. the network and context must be set with -N and -c β like, non-negotiable bestie π«Ά
π textual
import logs from the Textual IRC client.
find Textual -type f -name '*.txt' \
-not -path '*/Console/*' -print0 |
xargs -0 unscoop -f textual
π¦ weechat
import logs from the WeeChat IRC client.
find ~/.weechat/logs -type f -name 'irc.*.weechatlog' \
-not -name 'irc.server.*.weechatlog' -print0 |
xargs -0 unscoop -f weechat
β οΈ okay so real talk:unscoopis not able to correctly infer network and context names for channel names containing dots. import these logs explicitly with-Nand-c, periodt π
π znc
import logs from the znc(1) log module.
find ~/.znc/moddata/log \
~/.znc/users/*/moddata/log \
~/.znc/users/*/networks/*/moddata/log \
-type f -name '*.log' \
-not -path '*/status/*' -print0 |
xargs -0 unscoop -f znc
π SEE ALSO π
that's the whole list, but it's an iconic list π
π«Ά AUTHORS π«Ά
June McEnroe <june@causal.agency> β queen behavior, we love her π
π BUGS π
send mail to β¨list+litterbox@causal.agencyβ© or join #ascii.town on irc.tilde.chat π β they're nice, promise π§
π final vibe check: this page is from Debian, dated May 18, 2021. mwah, that's the tea, go import some logs bestie π β¨π
π¦ where this page comes from
- nixos 26.05: litterbox 1.9
- nixpkgs unstable: litterbox 1.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms