| 1 |
.\" |
| 2 |
.\" Argus-5.0 Software |
| 3 |
.\" Copyright (c) 2000-2024 QoSient, LLC |
| 4 |
.\" All rights reserved. |
| 5 |
.\" |
| 6 |
.\" |
| 7 |
.TH RACONVERT 1 "07 October 2023" "raconvert 5.0.3" |
| 8 |
.SH NAME |
| 9 |
\fBraconvert\fP \- convert comma-separated ASCII \fBargus(8)\fP data, to binary \fBargus(8)\fP data. |
| 10 |
.SH SYNOPSIS |
| 11 |
.B raconvert |
| 12 |
\fB\-r\fP \fIinput\fP \fB\-w\fP \fIoutput\fP |
| 13 |
.SH DESCRIPTION |
| 14 |
.IX "raconvert command" "" "\fLraconvert\fP \(em argus data" |
| 15 |
.LP |
| 16 |
.B Raconvert |
| 17 |
reads ASCII based files, either CSV, or Json |
| 18 |
.BR argus |
| 19 |
data from a file or stdin, and converts the ASCII representation to binary |
| 20 |
argus format. In order for \fBraconvert\fP to process the data correctly, the file should |
| 21 |
be created by \fBra.1\fP like programs, using the "-c <char>" option or the "-M json" |
| 22 |
mode, to specify the ASCII format. In the case of CSV files, column delimiters can be |
| 23 |
any non-ambiguous character, and are automatically discovered from the files title string. |
| 24 |
|
| 25 |
In the case of CSV files, because \fBraconvert.1\fP expects the first valid string in the |
| 26 |
file to be a \fBra.1\fP column title line, the \fBra.1\fP program must use the equivalent |
| 27 |
of the "-L 0" option. |
| 28 |
|
| 29 |
The file can present its column oriented data in any order, and \fBraconvert\fP will |
| 30 |
accomodate. Duplicate columns on the same line are allowed, but the final value |
| 31 |
in the resulting argus record with be the last value encountered. |
| 32 |
|
| 33 |
\fBraconvert.1\fP can read gzip and bzip2 compressed files, based on the file extension. |
| 34 |
|
| 35 |
.SH USES |
| 36 |
.B Raconvert |
| 37 |
is predominately used for reading ASCII represented archive data. Argus data is |
| 38 |
routinely converted to ASCII for inspection and archiving, due to the good |
| 39 |
compressibility offered by gzip and others. Argus data is also converted from binary |
| 40 |
to ASCII and back to binary, as a routine process to enforce content policies. |
| 41 |
The conversion, with ASCII inspection ensures that specific data of interest isn't |
| 42 |
leaked. |
| 43 |
|
| 44 |
.SH INVOCATION |
| 45 |
.nf |
| 46 |
\fBra\fP -L0 -c , -r argusfile > argus.ascii.csv |
| 47 |
\fBraconvert\fP -r argus.ascii.csv -w argusfile |
| 48 |
.fi |
| 49 |
|
| 50 |
.nf |
| 51 |
\fBra\fP -M json -r argusfile > argus.json |
| 52 |
\fBraconvert\fP -r argus.json -w argusfile |
| 53 |
.fi |
| 54 |
|
| 55 |
.SH COPYRIGHT |
| 56 |
Copyright (c) 2000-2024 QoSient. All rights reserved. |
| 57 |
.SH SEE ALSO |
| 58 |
.BR ra(1), |
| 59 |
.BR rarc(5), |
| 60 |
.BR argus(8), |
| 61 |
.SH FILES |
| 62 |
|
| 63 |
.SH AUTHORS |
| 64 |
.nf |
| 65 |
Carter Bullard ([email protected]). |
| 66 |
.fi |
| 67 |
.SH BUGS |