mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 16:54:58 +02:00
@ -8,10 +8,22 @@ splits contents across multiple columns via the separator.
|
||||
|
||||
## Signature
|
||||
|
||||
```> detect columns --skip --no_headers```
|
||||
```> detect columns --skip --no-headers```
|
||||
|
||||
## Parameters
|
||||
|
||||
- `--skip {int}`: number of rows to skip before detecting
|
||||
- `--no_headers`: don't detect headers
|
||||
- `--no-headers`: don't detect headers
|
||||
|
||||
## Examples
|
||||
|
||||
Splits string across multiple columns
|
||||
```shell
|
||||
> echo 'a b c' | detect columns -n
|
||||
```
|
||||
|
||||
Splits a multi-line string into columns with headers detected
|
||||
```shell
|
||||
> echo $'c1 c2 c3(char nl)a b c' | detect columns
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user