mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 20:03:54 +01:00
0d82d7df60
* Update documents of commands * Change plugin names for register command examples * Remove unused docs [ci skip]
30 lines
465 B
Markdown
30 lines
465 B
Markdown
---
|
|
title: save
|
|
layout: command
|
|
version: 0.59.1
|
|
---
|
|
|
|
Save a file.
|
|
|
|
## Signature
|
|
|
|
```> save (filename) --raw --append```
|
|
|
|
## Parameters
|
|
|
|
- `filename`: the filename to use
|
|
- `--raw`: save file as raw binary
|
|
- `--append`: append input to the end of the file
|
|
|
|
## 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
|
|
```
|