yq -oy '.' example.xml > example.yml
yq -ox '.' example.yml > example.xml
yq -oy example.json > example.yml
for f in $(ls *.json); do yq -oy $f > ${f%.*}.yml done
yq -oj example.yml > example.json
users: - name: foo id: 1 home: /home/foo - name: bar id: 2 home: /home/bar
# jsonで出力される yq '.' data.yml # yamlで出力される yq -y '.' data.yml
yq -r '.users[] | [.id, .name] | @tsv' data.yml 1 foo 2 bar
brew install yq
sudo yum install python-devel sudo pip install PyYAML==3.11 --ignore-installed sudo pip install yq --ignore-installed
PukiWiki 1.5.3 © 2001-2020 PukiWiki Development Team. Powered by PHP 7.4.33. HTML convert time: 0.485 sec.