Skip to content

Update docs for save.md #1994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions commands/docs/save.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ contributors: false
- `--stderr, -e {path}`: the filename used to save stderr, only works with `-r` flag
- `--raw, -r`: save file as raw binary
- `--append, -a`: append input to the end of the file
- `--prepend, -P`: prepend input to the beginning of the file
- `--force, -f`: overwrite the destination
- `--progress, -p`: enable progress bar

Expand Down Expand Up @@ -52,6 +53,12 @@ Append a string to the end of foo.txt

```

Prepend a string to the beginning of foo.txt
```nu
> 'prepend me' | save --prepend foo.txt

```

Save a record to foo.json in the current directory
```nu
> { a: 1, b: 2 } | save foo.json
Expand Down
Loading