mirror of
https://github.com/nushell/nushell.git
synced 2025-08-11 05:33:59 +02:00
@ -22,6 +22,11 @@ Update a column value
|
||||
> echo {'name': 'nu', 'stars': 5} | update name 'Nushell'
|
||||
```
|
||||
|
||||
Use in block form for more involved updating logic
|
||||
```shell
|
||||
> echo [[count fruit]; [1 'apple']] | update count {|f| $f.count + 1}
|
||||
```
|
||||
|
||||
Use in block form for more involved updating logic
|
||||
```shell
|
||||
> echo [[project, authors]; ['nu', ['Andrés', 'JT', 'Yehuda']]] | update authors { get authors | str collect ',' }
|
||||
|
Reference in New Issue
Block a user