Timeline for Grep value from json file
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 4, 2016 at 10:17 | comment | added | Sobrique |
perl -MJSON -e 'print map { $_ -> {id} } grep { $_ -> {product} eq "Apple" } @{decode_json( do { local $/; <> } )};' - if you really must use shell. But honestly? perl can do everything a shell script can, and SO MUCH more.
|
|
| Feb 4, 2016 at 9:20 | comment | added | Srikanth Yadake | thanks for this answer. But I am putting this in a .sh file. | |
| Feb 3, 2016 at 13:52 | history | answered | choroba | CC BY-SA 3.0 |