"category": "people"
cat emoji.txt|jq "..|.shortname?"|grep -v null|sed -E 's/":([^:]+):"/[code]\& #58;\1\& #58;[\/code] :\1:/'
&
#
cat emoji.json | python -m json.tool > /home/tanja/Documents/tmp/emoji.txt
I couldn't figure out how to turn the output from jq into a text file
cat emjo.json | jq . > emoji.txt
.
grep -v null
":
:
:"
\1
grep -v tone
for cat in $(cat emoji.txt|jq '.[]|.category'|sort|uniq); \ cat emoji.txt|jq ".[]|select(.category == $cat)|.shortname"|\ sed -E 's/":([^:]+):"/[code]\& #58;\1\& #58;[\/code] :\1:/' > ${cat//\"/}.txt
shortnames=( $(cat emoji.json|jq . |jq "..|.shortname?" |tr -d \") )categories=( $(cat emoji.json|jq . |jq "..|.category?" |tr -d \") )names=( $(cat emoji.json|jq . |jq "..|.name?" |tr -d \") )