How to ignore jq output null value
cat output | jq ‘del(select(.data[].ip == “1.1.1.1”)) | select(.data != null )’
cat output | jq ‘del(select(.data[].ip == “1.1.1.1”)) | select(.data != null )’
Introduction jq is a command-line JSON processor that you can use to filter, transform, read or create JSON data. In this short article, I want to show how can you create JSON data using jq command line when working with a bash script. Traditionally, if you want to create simple JSON data without using jq, you…