.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "CVTBATCH 8" .TH CVTBATCH 8 2024-04-01 "INN 2.7.2" "InterNetNews Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME cvtbatch \- Convert Usenet batch files to INN format .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBcvtbatch\fR [\fB\-w\fR \fIitems\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBcvtbatch\fR reads standard input as a sequence of lines, converts each line, and writes it to standard output. It is used to convert simple batch files that contain just the storage API token of an article to INN batch files that contain additional information about each article. .PP Each line is taken as a storage API token indicating a Usenet article. Only the first word of each line is parsed; anything following whitespace is ignored. Lines not starting with a valid token are also silently ignored. .PP If the input file consists of a series of message-IDs, then use \&\fBgrephistory\fR with the \fB\-s\fR flag piped into \fBcvtbatch\fR. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-w\fR \fIitems\fR" 4 .IX Item "-w items" The \fB\-w\fR flag specifies how each output line should be written. The items for this flag should be chosen from the \f(CW\*(C`W\*(C'\fR flag items as specified in newsfeeds(5). They may be chosen from the following set: .Sp .Vb 5 \& b Size of the article in bytes. \& f Storage API token of the article (same as "n"). \& m Article message\-ID. \& n Storage API token of the article. \& t Arrival time of the article as seconds since epoch. .Ve .Sp The default is \f(CW\*(C`nm\*(C'\fR, that is to say the storage API token followed by the message-ID of the article. .SH HISTORY .IX Header "HISTORY" Written by Rich $alz for InterNetNews. Converted to POD by Julien Elie. .SH "SEE ALSO" .IX Header "SEE ALSO" grephistory(1), newsfeeds(5).