Atlas › 19 Linux & Command Line › grep, curl, and jq☰ Read as one page
grep, curl, and jq
3.1The Big Three for QA EngineersThree commands handle the vast majority of QA investigation work on the command line: grep for searching through logs and files, curl for…3.2grep -- Search Logs and Filesgrep searches for patterns in files and outputs matching lines. It is your first tool when investigating failures in log files.3.3curl -- Make HTTP Requestscurl sends HTTP requests from the command line. It is invaluable for quick API testing, health checks, and debugging network issues.3.4jq -- Parse JSONjq is a command-line JSON processor. Most APIs return JSON, and jq lets you extract, filter, and transform that data.3.5Combining grep, curl, and jqThe real power comes from combining these tools:3.6awk and sed (Quick Reference)Two additional text processing tools that complement grep:3.7ssh and scpRemote server access is essential for QA work in non-local environments:3.8Hands-On Exercise1. Use grep to find all ERROR lines in a log file, then count how many unique error messages there are 2. Use curl to make a GET and POST…