mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-05 00:55:44 +01:00
ea7b65a8fa
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
184 lines
5 KiB
Groff
184 lines
5 KiB
Groff
.\" Man page generated from reStructuredText.
|
|
.
|
|
.TH X_X 1 "2020-11-15" "20150330_d236f8f" "SlackBuilds.org"
|
|
.SH NAME
|
|
x_x \- display Excel and CSV files on a terminal
|
|
.
|
|
.nr rst2man-indent-level 0
|
|
.
|
|
.de1 rstReportMargin
|
|
\\$1 \\n[an-margin]
|
|
level \\n[rst2man-indent-level]
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
-
|
|
\\n[rst2man-indent0]
|
|
\\n[rst2man-indent1]
|
|
\\n[rst2man-indent2]
|
|
..
|
|
.de1 INDENT
|
|
.\" .rstReportMargin pre:
|
|
. RS \\$1
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
. nr rst2man-indent-level +1
|
|
.\" .rstReportMargin post:
|
|
..
|
|
.de UNINDENT
|
|
. RE
|
|
.\" indent \\n[an-margin]
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
.nr rst2man-indent-level -1
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
..
|
|
.\" RST source for x_x(1) man page. Convert with:
|
|
.
|
|
.\" rst2man.py x_x.rst > x_x.1
|
|
.
|
|
.\" rst2man.py comes from the SBo development/docutils package.
|
|
.
|
|
.\" converting from pod:
|
|
.
|
|
.\" s/B<\([^>]*\)>/**\1**/g
|
|
.
|
|
.\" s/I<\([^>]*\)>/*\1*/g
|
|
.
|
|
.SH SYNOPSIS
|
|
.sp
|
|
x_x [\fB\-h\fP \fIrow\fP] [\fB\-f\fP \fIcsv|excel\fP] [\fB\-d\fP \fIdelimiter\fP] [\fB\-q\fP \fIquotechar\fP] [\fB\-e\fP \fIencoding\fP]
|
|
.SH DESCRIPTION
|
|
.sp
|
|
x_x (the Dead Guy CLI) is a command line reader that displays either
|
|
Excel files or CSVs in your terminal. The purpose of this is to not
|
|
break the workflow of people who live on the command line and need to
|
|
access a spreadsheet generated using Microsoft Excel.
|
|
.SH OPTIONS
|
|
.INDENT 0.0
|
|
.TP
|
|
.B \fB\-h\fP, \fB\-\-heading\fP \fIrow\fP
|
|
Row number containing the headings (default: none). Note: the first row is
|
|
numbered 0, not 1!
|
|
.TP
|
|
.B \fB\-f\fP, \fB\-\-file\-type\fP \fIcsv|excel\fP
|
|
Override autodetection of input file type.
|
|
.TP
|
|
.B \fB\-d\fP, \fB\-\-delimiter\fP \fIcharacter\fP
|
|
Delimiter (only applicable to CSV files) [default: \(aq,\(aq].
|
|
.TP
|
|
.B \fB\-q\fP, \fB\-\-quotechar\fP
|
|
Quote character (only applicable to CSV files) [default: \(aq"\(aq].
|
|
.TP
|
|
.B \fB\-e\fP, \fB\-\-encoding\fP \fIencoding\fP
|
|
Encoding [default: UTF\-8].
|
|
.TP
|
|
.B \fB\-\-version\fP
|
|
Show the version and exit.
|
|
.TP
|
|
.B \fB\-\-help\fP
|
|
Show built\-in help and exit.
|
|
.UNINDENT
|
|
.SH EXAMPLES
|
|
.sp
|
|
So, for example:
|
|
.INDENT 0.0
|
|
.INDENT 3.5
|
|
.sp
|
|
.nf
|
|
.ft C
|
|
$ x_x dead_guys.xlsx
|
|
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
|
| A | B |
|
|
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
|
| Person | Age at Death |
|
|
| Harrold Holt | 59.0 |
|
|
| Harry Houdini | 52.0 |
|
|
| Howard Hughes | 70.0 |
|
|
.ft P
|
|
.fi
|
|
.UNINDENT
|
|
.UNINDENT
|
|
.sp
|
|
Or to specify a specific row as the header which will be visible on each page:
|
|
.INDENT 0.0
|
|
.INDENT 3.5
|
|
.sp
|
|
.nf
|
|
.ft C
|
|
$ x_x \-h 0 dead_guys.xlsx
|
|
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
|
| Person | Age at Death |
|
|
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
|
| Harrold Holt | 59.0 |
|
|
| Harry Houdini | 52.0 |
|
|
| Howard Hughes | 70.0 |
|
|
.ft P
|
|
.fi
|
|
.UNINDENT
|
|
.UNINDENT
|
|
.sp
|
|
Weird CSVs? No problem!
|
|
.INDENT 0.0
|
|
.INDENT 3.5
|
|
.sp
|
|
.nf
|
|
.ft C
|
|
$ cat dead_guys.csv
|
|
person;age_at_death
|
|
Harrold Holt;59
|
|
Harry Houdini;52
|
|
Howard Hughes;70
|
|
|Not some guy, but just a string with ; in it|;0
|
|
.ft P
|
|
.fi
|
|
.UNINDENT
|
|
.UNINDENT
|
|
.INDENT 0.0
|
|
.INDENT 3.5
|
|
.sp
|
|
.nf
|
|
.ft C
|
|
$ x_x \-h 0 \-\-delimiter=\(aq;\(aq \-\-quotechar=\(aq|\(aq dead_guys.csv
|
|
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
|
| person | age_at_death |
|
|
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
|
| Harrold Holt | 59 |
|
|
| Harry Houdini | 52 |
|
|
| Howard Hughes | 70 |
|
|
| Not some guy, but just a string with ; in it | 0 |
|
|
.ft P
|
|
.fi
|
|
.UNINDENT
|
|
.UNINDENT
|
|
.sp
|
|
Does your CSV file not end in "csv"? Again, no problem:
|
|
.INDENT 0.0
|
|
.INDENT 3.5
|
|
.sp
|
|
.nf
|
|
.ft C
|
|
$ mv dead_guys.csv dead_guys.some_other_extension
|
|
$ x_x \-h 0 \-\-file\-type=csv \-\-delimiter=\(aq;\(aq \-\-quotechar=\(aq|\(aq dead_guys.some_other_extension
|
|
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
|
| person | age_at_death |
|
|
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
|
|
| Harrold Holt | 59 |
|
|
| Harry Houdini | 52 |
|
|
| Howard Hughes | 70 |
|
|
| Not some guy, but just a string with ; in it | 0 |
|
|
.ft P
|
|
.fi
|
|
.UNINDENT
|
|
.UNINDENT
|
|
.SH COPYRIGHT
|
|
.sp
|
|
See the file /usr/doc/x_x\-20150330_d236f8f/LICENSE for license information.
|
|
.SH AUTHORS
|
|
.sp
|
|
x_x was written by krockode.
|
|
.sp
|
|
This man page written for the SlackBuilds.org project
|
|
by B. Watson, and is licensed under the WTFPL.
|
|
.SH SEE ALSO
|
|
.sp
|
|
The x_x homepage: \fI\%https://github.com/krockode/x_x\fP
|
|
.\" Generated by docutils manpage writer.
|
|
.
|