Let's say I have the following:
jq 'map(select(. >= 5))'
given [1,2,3,4,5,6,7]
it returns:
[5,6,7]
I also have
jq 'map(select(. < 5))'
which given the same data, returns [1,2,3,4]
. How can I do these complementary queries at the same time, so that I receive for example:
[1,2,3,4], [5,6,7]