Implement table command to parse tsv, csv, and JSON
This commit is contained in:
4
HELP.md
4
HELP.md
@@ -277,6 +277,10 @@ Destructure the current subject based on the given delimiter.
|
||||
If a `limit` is provided, split the subject no more than the given number of times.
|
||||
Example: `foo::bar::baz::ban` -> `split :: 2` -> `[foo, bar, baz::ban]`
|
||||
|
||||
#### `table <csv|tsv|json>`
|
||||
Destructure the current subject into a table from the given format.
|
||||
If `json`, assumes the data is a list of keyed objects (`{[string]: string|number|boolean}[]`).
|
||||
|
||||
#### `join [<on>]`
|
||||
Join the current destructured subject back together using the given delimiter.
|
||||
If no delimiter is provided, it will preserve the existing delimiters between substrings.
|
||||
|
||||
Reference in New Issue
Block a user