I'm using jq
and trying to remove an element from an array based on it's value by can't figure out the syntax, it works with map but not del:
input = [10,11,12]
echo $input | jq -r 'map(select(. == 10))'
returns [10]
echo $input | jq -r 'del(select(. == 10))'
returns [10,11,12]
not [11,12]
as expected
Can someone point me in the right direction?