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…
When 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!!
Temporary solutions: Run this command to replace the following function file: and check the status of maldet:
add_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
Hello, 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,…
When 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…
Busy with hardware renovation. Stay tuned!!!!
Character classes . – Matches any character except newline\d – Digit (0-9)\D – Not a digit (0-9) – opposite of \d\w, [A-Za-z0-9_], [:word:] – Word character (a-z, A-Z, 0-9 and _)\W, [^A-Za-z0-9], [^:word:] – Not a word character\s – Whitespace (space, tab, newline)\S – Not whitespace (space, tab, newline) – opposite of \s[] – Matches…
{$subcategory.id_image|@print_r} ==> Print an array {$page|@print_r} ==> Print page array {if $subcategory.id_image neq it-default1} {else} {/if} ==> Check if subcategory has image {$urls.base_url} ==> Prestashop site baseUrl {$urls.base_url} ==> Store address {$urls.current_url} ==> Current address (url) where we are {$urls.shop_domain_url} ==> Store domain {$urls.img_ps_url} ==> Image root directory url {$urls.img_cat_url} ==> Url directory of images…