We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
save.md
1 parent a4e00cc commit 926afc9Copy full SHA for 926afc9
commands/docs/save.md
@@ -25,6 +25,7 @@ contributors: false
25
- `--stderr, -e {path}`: the filename used to save stderr, only works with `-r` flag
26
- `--raw, -r`: save file as raw binary
27
- `--append, -a`: append input to the end of the file
28
+ - `--prepend, -P`: prepend input to the beginning of the file
29
- `--force, -f`: overwrite the destination
30
- `--progress, -p`: enable progress bar
31
@@ -52,6 +53,12 @@ Append a string to the end of foo.txt
52
53
54
```
55
56
+Prepend a string to the beginning of foo.txt
57
+```nu
58
+> 'prepend me' | save --prepend foo.txt
59
+
60
+```
61
62
Save a record to foo.json in the current directory
63
```nu
64
> { a: 1, b: 2 } | save foo.json
0 commit comments