forked from extern/nushell
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
29 lines
404 B
Markdown
29 lines
404 B
Markdown
---
|
|
title: save
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
Save a file.
|
|
|
|
## Signature
|
|
|
|
```> save (filename) --raw```
|
|
|
|
## Parameters
|
|
|
|
- `filename`: the filename to use
|
|
- `--raw`: save file as raw binary
|
|
|
|
## Examples
|
|
|
|
Save a string to foo.txt in current directory
|
|
```shell
|
|
> echo 'save me' | save foo.txt
|
|
```
|
|
|
|
Save a record to foo.json in current directory
|
|
```shell
|
|
> echo { a: 1, b: 2 } | save foo.json
|
|
```
|