D
D
Dasel
v2
Search
⌃
K
Introduction
GitHub
Supported file formats
Memory usage
Installation
Commands
Select
Put
Delete
Functions
Selector Overview
All
And
Append
Count
Equal
Filter
FilterOr
First
Index
Join
Key
Keys
Last
Len
LessThan
MapOf
Merge
MoreThan
Not
Or
OrDefault
Parent
Property
String
This
Type
Examples
Using dasel as a go package
Basics
Change file format
Filtering objects based on present/missing key
Powered By
GitBook
Comment on page
Len
Len expects no arguments and can be used on lists or objects. It returns the number of elements contained within the list/map.
Examples
$ echo '{"numbers":[1,2,3,4,5,6,7,8,9]}' | dasel -r json 'len()'
1
$ echo '{"numbers":[1,2,3,4,5,6,7,8,9]}' | dasel -r json 'numbers.len()'
9
Functions - Previous
Last
Next - Functions
LessThan
Last modified
1yr ago