nushell/docs/commands/default.md

24 lines
376 B
Markdown
Raw Normal View History

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