mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
431 B
431 B
title | layout | version |
---|---|---|
format | command | 0.59.1 |
Format columns into a string using a simple pattern.
Signature
> format (pattern)
Parameters
pattern
: the pattern to output. e.g.) "{foo}: {bar}"
Examples
Print filenames with their sizes
> ls | format '{name}: {size}'
Print elements from some columns of a table
> echo [[col1, col2]; [v1, v2] [v3, v4]] | format '{col2}'