Dasel
v2
v2
  • 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
    • Null
    • This
    • Type
  • Examples
    • Using dasel as a go package
    • Basics
    • Change file format
    • Filtering objects based on present/missing key
Powered by GitBook
On this page
  • Usage
  • Examples
  • This
  • This using alias
Edit on GitHub
  1. Functions

This

Accepts no arguments.

Returns the current value. Is most commonly used in comparison functions when you want to reference the value of the current element.

Usage

. is an alias for this().

Examples

This

$ echo '{"x": 1, "y": 2, "z": 3}' | dasel -r json 'all().this()'
1
2
3

This using alias

$ echo '{"x": 1, "y": 2, "z": 3}' | dasel -r json 'all().'
1
2
3
PreviousNullNextType

Last updated 2 years ago