diff --git a/commands/docs/save.md b/commands/docs/save.md index b2d60948665..a4b92c4f706 100644 --- a/commands/docs/save.md +++ b/commands/docs/save.md @@ -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 @@ -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