values
for filters> values {flags}
input | output |
---|---|
record | list<any> |
table | list<any> |
Get the values from the record (produce a list)
> { mode:normaluserid:31415 } |values
╭───┬────────╮
│0│normal│
│1│31415│
╰───┴────────╯
Values are ordered by the column order of the record
> { f:250g:191c:128d:1024e:2000a:16b:32 } |values
╭───┬──────╮
│0│250│
│1│191│
│2│128│
│3│1024│
│4│2000│
│5│16│
│6│32│
╰───┴──────╯
Get the values from the table (produce a list of lists)
> [[namemeaning]; [lslist] [mvmove] [cd'change directory']] |values
╭───┬──────────────────────────╮
│0│╭───┬────╮│
│││0│ls││
│││1│mv││
│││2│cd││
││╰───┴────╯│
│1│╭───┬──────────────────╮│
│││0│list││
│││1│move││
│││2│changedirectory││
││╰───┴──────────────────╯│
╰───┴──────────────────────────╯
This is a counterpart to columns
, which produces a list of columns' names.
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/values.html