Autogenerate missing docs (#3514)

* Autogenerate missing docs

* Update ansi.md

* Rename question mark command docs

* Delete empty?.md
This commit is contained in:
JT
2021-05-30 12:57:04 +12:00
committed by GitHub
parent ed515cbc0c
commit bff81f24aa
155 changed files with 3713 additions and 0 deletions

26
docs/commands/parse.md Normal file
View File

@ -0,0 +1,26 @@
# parse
Parse columns from string data using a simple pattern.
## Usage
```shell
> parse <pattern> {flags}
```
## Parameters
* `<pattern>` the pattern to match. Eg) "{foo}: {bar}"
## Flags
* -h, --help: Display this help message
* -r, --regex: use full regex syntax for patterns
## Examples
Parse a string into two named columns
```shell
> echo "hi there" | parse "{foo} {bar}"
```
Parse a string using regex pattern
```shell
> echo "hi there" | parse -r "(?P<foo>\w+) (?P<bar>\w+)"
```