🐧 Linux Command of the Day: jq
Master parsing JSON data directly from the command line! Ideal for processing API responses, config files, or logs. A must-have for scripting & automation. #LinuxTips #DevOps #Automation
Key flags: . (identity), keys, select(), | (pipe)
Examples:
echo '{"n":"L"}'|jq .n
echo '[{"s":"ok"},{"s":"err"}]' | jq '.[]|select(.s=="ok")'
echo '{"u":"a","l":"h"}'|jq keys