mirror of
https://github.com/nushell/nushell
synced 2024-12-26 04:53:09 +00:00
fix error in save.md
This commit is contained in:
parent
e38a4323b4
commit
9bd25d7427
1 changed files with 5 additions and 3 deletions
|
@ -18,11 +18,13 @@ Syntax: `save (path) {flags}`
|
|||
You can save the name of files in a directory like this:
|
||||
|
||||
```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:
|
||||
|
||||
```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 a new issue