Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

jq select by field

json='[
	{
	  "location": "Stockholm",
	  "name": "Walt"
	},
	{
		"location": "Germantown",
		"name": "Donald"
	}
]'

echo $json  | jq '.[] | select(.location=="Stockholm")' 
Comment

PREVIOUS NEXT
Code Example
Shell :: locate in specific directory 
Shell :: how to empty text file in unix 
Shell :: tailwindcss 
Shell :: install brave browser download 
Shell :: access django admin 
Shell :: npm-gui 
Shell :: Git command to Change Your Committer Name & Email Globally 
Shell :: linux change user and group 
Shell :: how to get out from vim editor 
Shell :: cat: /var/jenkins_home/secrets/initialAdminPassword: No such file or directory 
Shell :: vite js install 
Shell :: How do I rename a local Git branch? 
Shell :: compress to tgz linux 
Shell :: Kubernetes configuration file is group-readable 
Shell :: windows start shortcut cmd administrator 
Shell :: xampp ubuntu 20.04 
Shell :: bash if file content equals 
Shell :: git check diff between two repositories 
Shell :: linux bash do something when file changes 
Shell :: Composer and npm install the theme onto your computer. Install the theme into your local WordPress install. 
Shell :: git clone with token 
Shell :: changing folder permission in linux 
Shell :: bash do while one line 
Shell :: git a clean history 
Shell :: how to download virtualbox on kali linux 
Shell :: what is merge conflict in git 
Shell :: check which python script is running 
Shell :: how to install kite on manjero 
Shell :: install dpkg vscode 
Shell :: debian restart service 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =