nushell/docs/commands/default.md
Justin Ma f3626f7c3a
Update docs for open and decode command, regenerate all docs (#4815)
* Update docs for open and decode command, regenerate all docs

* Update open.rs

* Update open.md

Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
2022-03-11 05:39:54 -05:00

467 B

title layout version
default command 0.59.1

Sets a default row's column if missing.

Signature

> default (default value) (column name)

Parameters

  • default value: the value to use as a default
  • column name: the name of the column

Examples

Give a default 'target' column to all file entries

> ls -la | default 'nothing' target

Default the $nothing value in a list

> [1, 2, $nothing, 4] | default 3