---
title: "Discussion on \"yq v4 tools\" | Hashnode"
description: "Discussion on \"yq v4 tools\". Few operators :\n\nLength\n We can get the length of an array using this length operator\n apple:\n   - test: \"eat\"\n   - test: \"cut\"\n\n Then the following command gives us the length\n length=$(yq '.apple | length' test.yaml)\n\n\nenv\n This is used to pass var..."
url: "https://hashnode.com/posts/yq-v4-tools/64defd00341c33bcdba8c6ec"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [yq v4 tools](https://techtricks.nabhtara.in/yq-v4-tools?utm_source=hashnode&utm_medium=feed)

Few operators : Length We can get the length of an array using this length operator apple: - test: "eat" - test: "cut" Then the following command gives us the length length=$(yq '.apple | length' test.yaml) env This is used to pass var...

Aug 18, 2023 · 1 min read · techtricks.nabhtara.in  
Read the article

-   [#yq](https://hashnode.com/tag/yq)

## Written by

[SUJAY PUJARI](https://hashnode.com/@sujaypujari)

@sujaypujari

  
[View profile](https://hashnode.com/@sujaypujari)

Java software developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
