Compare commits
2 Commits
3cae67750e
...
b449a80dfa
Author | SHA1 | Date | |
---|---|---|---|
b449a80dfa | |||
092e13a411 |
@ -89,7 +89,7 @@ function show
|
|||||||
{
|
{
|
||||||
# to navigate to sub keys like data.statistics.my_key , we must use multiple -e extract options
|
# to navigate to sub keys like data.statistics.my_key , we must use multiple -e extract options
|
||||||
local value=$(echo "$json" | jshon -e "data" -e "statistics" -e $1 -u)
|
local value=$(echo "$json" | jshon -e "data" -e "statistics" -e $1 -u)
|
||||||
printf " $key=$value"
|
printf "$1=$value\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user