nushell/docs/commands/default.md

24 lines
376 B
Markdown
Raw Normal View History

---
title: default
layout: command
version: 0.59.1
---
2019-12-01 16:39:09 +00:00
Sets a default row's column if missing.
2019-12-01 16:39:09 +00:00
## Signature
```> default (column name) (column value)```
2019-12-01 16:39:09 +00:00
## Parameters
2019-12-01 16:39:09 +00:00
- `column name`: the name of the column
- `column value`: the value of the column to default
2019-12-01 16:39:09 +00:00
## Examples
2019-12-01 16:39:09 +00:00
Give a default 'target' to all file entries
2019-12-01 16:39:09 +00:00
```shell
> ls -la | default target 'nothing'
2019-12-01 16:39:09 +00:00
```