Added NOHEAD=1 behavior to hide header from output
This commit is contained in:
parent
fc0115f8cb
commit
40c0da1cf2
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,8 @@ JQ_COLS_REGEX="$( <<<"$JQ_COLS" \
|
||||||
jq -r '. | map ( ".\(.)" ) | join(",")'
|
jq -r '. | map ( ".\(.)" ) | join(",")'
|
||||||
)"
|
)"
|
||||||
|
|
||||||
|
[[ -z "$NOHEAD" ]] || JQ_COLS=
|
||||||
|
|
||||||
jqcode='
|
jqcode='
|
||||||
['"${JQ_COLS^^}"'] + [.[] |
|
['"${JQ_COLS^^}"'] + [.[] |
|
||||||
['"$JQ_COLS_REGEX"']
|
['"$JQ_COLS_REGEX"']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue