forked from extern/nushell
fix error in save.md
This commit is contained in:
parent
e38a4323b4
commit
9bd25d7427
@ -18,11 +18,13 @@ Syntax: `save (path) {flags}`
|
|||||||
You can save the name of files in a directory like this:
|
You can save the name of files in a directory like this:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
> ls | where type == File | pick name | save
|
> 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
|
```shell
|
||||||
> ls | where type == File | pick name | to-csv | save
|
> 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.
|
Loading…
Reference in New Issue
Block a user