y
y
yq
v4.x
Search
⌃K
v4.x
y
y
yq
v4.x
Search
⌃K
yq
How It Works
Upgrading from V3
Commands
Evaluate
Evaluate All
Shell Completion
Operators
Add
Alternative (Default value)
Anchor and Alias Operators
Array to Map
Assign (Update)
Boolean Operators
Collect into Array
Column
Comment Operators
Compare Operators
Contains
Create, Collect into Object
Date Time
Delete
Divide
Document Index
Encode / Decode
Entries
Env Variable Operators
Equals
Eval
File Operators
Filter Operator
Flatten
Group By
Has
Keys
Length
Line
Load
Map
Modulo
Multiply (Merge)
Parent
Path
Pick
Pipe
Recursive Descent (Glob)
Reduce
Reverse
Select
Shuffle
Slice Array
Sort
Sort Keys
Split into Documents
String Operators
Style
Subtract
Tag
Traverse (Read)
Union
Unique
Variable Operators
With
Usage
Output format
Working with CSV, TSV
Working with JSON
Working with Properties
Working with XML
Working with TOML
Front Matter
Split into multiple files
GitHub Action
Tips, Tricks, Troubleshooting
Github Page
Powered By GitBook

Pipe

Pipe the results of an expression into another. Like the bash operator.

Simple Pipe

Given a sample.yml file of:
a:
b: cat
then
yq '.a | .b' sample.yml
will output
cat

Multiple updates

Given a sample.yml file of:
a: cow
b: sheep
c: same
then
yq '.a = "cat" | .b = "dog"' sample.yml
will output
a: cat
b: dog
c: same
Previous
Pick
Next
Recursive Descent (Glob)
Last modified 4mo ago
Copy link
On this page
Simple Pipe
Multiple updates