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…
DetailsWhen you install Jetbrain Remote Development on your server, you probably wonder how can you remove all the development packages that get installed on your server manually. Here are the files that can be removed completely: Congratulation, you have now completely removed JetBrain Remote Development!!
DetailsTemporary solutions: Run this command to replace the following function file: and check the status of maldet:
DetailsMaldet (Linux Malware Detect) is an open-source malware scanner for Linux. It is used to scan malware on servers. Step 1 – Installing maldet Login as root user in order to get root access Run the following commands: Step 2 – updating maldet Run the following command to update maldet malware signature Output: Step 3…
Detailsadd_userdb_quote=1 Related to the dovecot config for quota, the default value is 1 admin_helper=”help.domain.com/admin” Path to help link for the admin user
DetailsHello, below is the sample bash script that I frequently use to manage chkrootkit binary. What is Chkrootkit? Chkrootkit is a linux rootkit scanner Updated: I’m not going to use chrootkit anymore because it seems like the installation has many bugs. Even the official FTP site is broken almost many years. In addition of that,…
DetailsWhen you try to run VirtualBox, you might have encountered the following error for all your virtual machine OSes: Full error message in text: Call to NEMR0InitVMPart2 failed: VERR_NEM_INIT_FAILED (VERR_NEM_VM_CREATE_FAILED). Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed} Caused: This is a known bug starting from version 6.1.28 Known solutions: Disable Windows hyper-v and restart…
Detailsanapp = %anappantitle = %antitleantitlebig = %antitlebigantext = %antextanticker = %antickeranicon = %aniconanbigicon = %anbigiconanpicture = %anpictureanstatusbaricon = %anstatusbariconansubtext = %ansubtextansummarytext = %ansummarytextaninfotext = %aninfotextantextlines = %antextlinesanbutton1text = %anbutton1textanbutton1action = %anbutton1actionanbutton1icon = %anbutton1iconanbutton2text = %anbutton2textanbutton2action= %anbutton2actionanbutton2icon= %anbutton3iconanbutton3text = %anbutton3textanbutton3action= %anbutton3actionanbutton3icon= %anbutton3icon====== array ======antexts () = %antexts()antextsbig () = %antextsbig()animages () = %animages() animagesbig () =…
Details