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

29 lines
467 B
Markdown

---
title: default
layout: command
version: 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
```shell
> ls -la | default 'nothing' target
```
Default the `$nothing` value in a list
```shell
> [1, 2, $nothing, 4] | default 3
```