2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: default
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
2019-12-01 17:39:09 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Sets a default row's column if missing.
|
2019-12-01 17:39:09 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-03-11 11:39:54 +01:00
|
|
|
```> default (default value) (column name)```
|
2019-12-01 17:39:09 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Parameters
|
2019-12-01 17:39:09 +01:00
|
|
|
|
2022-03-11 11:39:54 +01:00
|
|
|
- `default value`: the value to use as a default
|
2022-02-14 03:22:51 +01:00
|
|
|
- `column name`: the name of the column
|
2019-12-01 17:39:09 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Examples
|
2019-12-01 17:39:09 +01:00
|
|
|
|
2022-03-11 11:39:54 +01:00
|
|
|
Give a default 'target' column to all file entries
|
2019-12-01 17:39:09 +01:00
|
|
|
```shell
|
2022-03-11 11:39:54 +01:00
|
|
|
> ls -la | default 'nothing' target
|
|
|
|
```
|
|
|
|
|
|
|
|
Default the `$nothing` value in a list
|
|
|
|
```shell
|
|
|
|
> [1, 2, $nothing, 4] | default 3
|
2019-12-01 17:39:09 +01:00
|
|
|
```
|