Skip to content
CodeGix
Programming Idea
CodeGixCodeGix

    Monthly Archives: January 2023

    You are here:
    1. Home
    2. 2023
    3. January

    How to ignore jq output null value

    GeneralBy Arafat AliJanuary 9, 2023Leave a comment

    cat output | jq ‘del(select(.data[].ip == “1.1.1.1”)) | select(.data != null )’

    Use jq to create a dynamic json data in bash

    GeneralBy Arafat AliJanuary 9, 2023Leave a comment

    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…

    CodeGix
    Copyright (C) 2021-Present by CodeGix
    Go to Top