nushell/docs/commands/default.md

376 B

title layout version
default command 0.59.1

Sets a default row's column if missing.

Signature

> default (column name) (column value)

Parameters

  • column name: the name of the column
  • column value: the value of the column to default

Examples

Give a default 'target' to all file entries

> ls -la | default target 'nothing'