Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

jq select where

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

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

PREVIOUS NEXT
Code Example
Shell :: Could not find or parse valid build output file. 
Shell :: command to reset the colors in the terminal 
Shell :: wget multiple urls from file 
Shell :: kubernetes command kubectl 
Shell :: linux iso dd 
Shell :: flask run localhost 
Shell :: you are running create-react-app 
Shell :: download chrome on ubuntu 20.04 unsupported file 
Shell :: best website downloader ubuntu 
Shell :: gitignore generator201 
Shell :: create default package.json 
Shell :: git delete file 
Shell :: start tomcat 9 as a service windows 
Shell :: git create new branch with uncommitted changes 
Shell :: bash count files in directory recursively matchingattern 
Shell :: adb shell 
Shell :: cudaa nn version 
Shell :: powershell open folder 
Shell :: downloading and updating vscode 
Shell :: how to backup db mysql from cli 
Shell :: git config set email 
Shell :: how to reduce the size of an image in linux 
Shell :: add alias fish shell 
Shell :: how to clone a specific commit from github 
Shell :: linux check if a group exist or not 
Shell :: ubuntu set vi as default editor 
Shell :: git make directory 
Shell :: merge master into local branch 
Shell :: linux ip route add 
Shell :: git global ingnore 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =