mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:55:42 +02:00
Add subcommands. Switch from-* and to-* to them (#1708)
This commit is contained in:
@ -21,10 +21,10 @@ You can save the name of files in a directory like this:
|
||||
> ls | where type == File | pick name | save filenames.csv
|
||||
```
|
||||
|
||||
Or you can format it in supported formats using one of the `to-*` commands:
|
||||
Or you can format it in supported formats using one of the `to` commands:
|
||||
|
||||
```shell
|
||||
> ls | where type == File | pick name | to-csv | save filenames
|
||||
> ls | where type == File | pick name | to csv | save filenames
|
||||
```
|
||||
|
||||
`filename.csv` and `filenames` are both `csv` formatted files. Nu auto-converts the format if a supported file extension is given.
|
Reference in New Issue
Block a user