#jq コマンドで出力されるダブルクォートを #perl で削除する例
jq
there is double quotation
$ echo '["A\\nB\\nC"]' | jq '.[]'
"A\nB\nC"
jq --raw-output
there is not double quotation but new lines
$ echo '["A\\nB\\nC"]' | jq --raw-output '.[]'
A
B
C
perl replace
i tried this
$ echo '["A\\nB\\nC"]' | jq '.[]' | perl -pe 's/^"|"$//g'
A\nB\nC
Original by Github issue
Author And Source
この問題について(#jq コマンドで出力されるダブルクォートを #perl で削除する例), 我々は、より多くの情報をここで見つけました https://qiita.com/YumaInaura/items/4dd720147f4bb36c259c著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .