Added NOHEAD=1 behavior to hide header from output
This commit is contained in:
parent
fc0115f8cb
commit
40c0da1cf2
|
@ -137,6 +137,8 @@ JQ_COLS_REGEX="$( <<<"$JQ_COLS" \
|
|||
jq -r '. | map ( ".\(.)" ) | join(",")'
|
||||
)"
|
||||
|
||||
[[ -z "$NOHEAD" ]] || JQ_COLS=
|
||||
|
||||
jqcode='
|
||||
['"${JQ_COLS^^}"'] + [.[] |
|
||||
['"$JQ_COLS_REGEX"']
|
||||
|
|
Loading…
Reference in New Issue