Dasel
v3
v3
  • Getting started
    • Introduction
    • Installation
    • Concepts
      • Expressions
      • Branches
  • Syntax
    • Whitespace
    • Types/Literals
    • String concatenation
    • Arrays/slices
    • Objects/maps
    • Conditionals
    • Spread
    • Coalesce
  • Input/Output
    • Read/Write formats
    • Stdin
    • Stdout
    • Variables
    • Read/Writer flags
  • Functions
    • add
    • min
    • max
    • reverse
    • toString
    • toInt
    • toFloat
    • typeOf
    • map
    • filter
    • sortBy
    • parse
    • base64e
    • base64d
Powered by GitBook
On this page
  1. Input/Output

Stdin

It's common that you will want to pass some input into dasel to work with.

The simplest way of doing so is sending it to stdin, e.g.

echo '{"message": "Hello world"}' | dasel -i json

This data could be in many formats (json, yaml, etc), so it's important that you use -i, --input to specify the input file format.

Note that if you provide an input format, you must write to stdin other dasel will hang waiting for input.

PreviousRead/Write formatsNextStdout

Last updated 7 months ago