✨
ysv
  • ysv
  • Installation
  • Usage
  • Configuration format
  • Configuration Language
    • Basics
    • input
    • Constants
    • String transformations
    • Date & time
  • Technology Choices
Powered by GitBook
On this page
  • value
  • var
  • line-number

Was this helpful?

  1. Configuration Language

Constants

Fill in constant values

value

version: 1
columns:
  copyright:
    - value: "©2020 Acme Labs, Inc"

Fills every cell in the output dataset with a static value hardcoded in the config.

var

version: 1
columns:
  operating_system:
    - var: operating_system

To get desired result, run ysv like this:

YSV_VAR_operating_system=VMS cat input.csv | ysv operating_sytems.yaml > output.csv

Useful to employ ysv in automated environments and scripts.

line-number

version: 1
columns:
  line:
    - line-number

Will enumerate dataset lines, starting from 1.

PreviousinputNextString transformations

Last updated 4 years ago

Was this helpful?