2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-01-22 18:05:21 +00:00
nushell/docs/commands/save.md
Justin Ma c0a1d18e3d
update , regenerate commands' docs and update make_docs script ()
* feat: update , regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

404 B

title layout version
save command 0.59.0

Save a file.

Signature

> save (filename) --raw

Parameters

  • filename: the filename to use
  • --raw: save file as raw binary

Examples

Save a string to foo.txt in current directory

> echo 'save me' | save foo.txt

Save a record to foo.json in current directory

> echo { a: 1, b: 2 } | save foo.json