nushell/docs/commands/save.md

29 lines
404 B
Markdown
Raw Normal View History

---
title: save
layout: command
version: 0.59.0
---
2019-11-29 18:15:51 +01:00
Save a file.
2019-11-29 18:15:51 +01:00
## Signature
2019-11-29 18:15:51 +01:00
```> save (filename) --raw```
2019-11-29 18:15:51 +01:00
## Parameters
2019-11-29 18:15:51 +01:00
- `filename`: the filename to use
- `--raw`: save file as raw binary
2019-11-30 21:07:43 +01:00
## 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
```