2020-05-05 08:05:23 +00:00
|
|
|
# to
|
|
|
|
|
|
|
|
Converts table data into a string or binary. The target format is specified as a subcommand, like `to csv` or `to json`.
|
|
|
|
|
|
|
|
## Available Subcommands
|
|
|
|
|
|
|
|
* to bson
|
|
|
|
* [to csv](to-csv.md)
|
|
|
|
* to html
|
|
|
|
* [to json](to-json.md)
|
2020-10-15 03:20:55 +00:00
|
|
|
* [to md](to-md.md)
|
2020-05-05 08:05:23 +00:00
|
|
|
* to sqlite
|
|
|
|
* [to toml](to-toml.md)
|
|
|
|
* [to tsv](to-tsv.md)
|
|
|
|
* [to url](to-url.md)
|
2020-07-25 08:19:15 +00:00
|
|
|
* [to xml](to-xml.md)
|
2020-05-05 08:05:23 +00:00
|
|
|
* [to yaml](to-yaml.md)
|
|
|
|
|
|
|
|
*Subcommands without links are currently missing their documentation.*
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```shell
|
|
|
|
> shells
|
|
|
|
━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
# │ │ name │ path
|
|
|
|
───┼───┼────────────┼────────────────────────
|
|
|
|
0 │ X │ filesystem │ /home/shaurya
|
|
|
|
1 │ │ filesystem │ /home/shaurya/Pictures
|
|
|
|
2 │ │ filesystem │ /home/shaurya/Desktop
|
|
|
|
━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━
|
2020-06-23 18:21:47 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
2020-05-05 08:05:23 +00:00
|
|
|
> shells | to csv
|
|
|
|
,name,path
|
|
|
|
X,filesystem,/home/shaurya
|
|
|
|
,filesystem,/home/shaurya/Pictures
|
|
|
|
,filesystem,/home/shaurya/Desktop
|
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
|
|
|
> open sample.url
|
|
|
|
━━━━━━━━━━┯━━━━━━━━┯━━━━━━┯━━━━━━━━
|
|
|
|
bread │ cheese │ meat │ fat
|
|
|
|
──────────┼────────┼──────┼────────
|
|
|
|
baguette │ comté │ ham │ butter
|
|
|
|
━━━━━━━━━━┷━━━━━━━━┷━━━━━━┷━━━━━━━━
|
2020-06-23 18:21:47 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
2020-05-05 08:05:23 +00:00
|
|
|
> open sample.url | to url
|
|
|
|
bread=baguette&cheese=comt%C3%A9&meat=ham&fat=butter
|
|
|
|
```
|