LoginSignup
0
0

More than 1 year has passed since last update.

yqで出力した結果にくっつくダブルクォーテーション("")を除ける方法

Posted at

AWSを使い始めてから、yamlという設定ファイルの素敵さを知りました。
Python × Shell使いには持ってこいなとっても良い子です。書くの楽だし見やすいし。

しかしshell × yamlの組み合わせにチャレンジしてみたところ、アウトプットにダブルクォーテーション("")がついてくるのが嫌...
(ちなみにうちのyqさんはPython系です。yqさんにはGO系とPython系がいるようですね。)

結論、

terminalな画面
yq -r [yaml内の設定] [yamlのpath]

としたらアウトプットから""は消えました!! Python系(つまりjqと依存関係のあるyq)をお使いの方はこれで""とおさらばできると思います٩( ᐛ )و huhuh

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0