mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 16:38:36 +02:00
Add example for command n,g,p and grid, update date now examples (#4622)
This commit is contained in:
@ -20,8 +20,8 @@ Update the table cells.
|
||||
Update the zero value cells to empty strings.
|
||||
```shell
|
||||
> [
|
||||
[2021-04-16, 2021-06-10, 2021-09-18, 2021-10-15, 2021-11-16, 2021-11-17, 2021-11-18];
|
||||
[ 37, 0, 0, 0, 37, 0, 0]
|
||||
["2021-04-16", "2021-06-10", "2021-09-18", "2021-10-15", "2021-11-16", "2021-11-17", "2021-11-18"];
|
||||
[ 37, 0, 0, 0, 37, 0, 0]
|
||||
] | update cells {|value|
|
||||
if $value == 0 {
|
||||
""
|
||||
@ -34,8 +34,8 @@ Update the zero value cells to empty strings.
|
||||
Update the zero value cells to empty strings in 2 last columns.
|
||||
```shell
|
||||
> [
|
||||
[2021-04-16, 2021-06-10, 2021-09-18, 2021-10-15, 2021-11-16, 2021-11-17, 2021-11-18];
|
||||
[ 37, 0, 0, 0, 37, 0, 0]
|
||||
["2021-04-16", "2021-06-10", "2021-09-18", "2021-10-15", "2021-11-16", "2021-11-17", "2021-11-18"];
|
||||
[ 37, 0, 0, 0, 37, 0, 0]
|
||||
] | update cells -c ["2021-11-18", "2021-11-17"] {|value|
|
||||
if $value == 0 {
|
||||
""
|
||||
|
Reference in New Issue
Block a user