Skip to content

Commit 926afc9

Browse files
Update docs for save.md
1 parent a4e00cc commit 926afc9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

commands/docs/save.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ contributors: false
2525
- `--stderr, -e {path}`: the filename used to save stderr, only works with `-r` flag
2626
- `--raw, -r`: save file as raw binary
2727
- `--append, -a`: append input to the end of the file
28+
- `--prepend, -P`: prepend input to the beginning of the file
2829
- `--force, -f`: overwrite the destination
2930
- `--progress, -p`: enable progress bar
3031

@@ -52,6 +53,12 @@ Append a string to the end of foo.txt
5253
5354
```
5455

56+
Prepend a string to the beginning of foo.txt
57+
```nu
58+
> 'prepend me' | save --prepend foo.txt
59+
60+
```
61+
5562
Save a record to foo.json in the current directory
5663
```nu
5764
> { a: 1, b: 2 } | save foo.json

0 commit comments

Comments
 (0)