Library › Book 19 › grep, curl, and jq -- The Big Three
grep, curl, and jq -- The Big Three
3.1🔒Why These Three Commands MatterThree commands handle the vast majority of investigation work on the command line: grep for searching through logs and files, curl for…
3.2🔒grep -- 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.3🔒curl -- Make HTTP Requestscurl sends HTTP requests from the command line. It is invaluable for quick API testing, health checks, and debugging network issues without…
3.4🔒jq -- Parse JSONjq is a command-line JSON processor. Most APIs return JSON, and jq lets you extract, filter, and transform that data without writing a…
3.5🔒Combining grep, curl, and jqThe real power comes from combining these tools into investigation workflows:
3.6🔒awk and sed -- Text Processing Power ToolsTwo additional text processing tools that complement grep. These are more powerful but have steeper learning curves.
3.7🔒SSH and SCP -- Remote Server AccessRemote server access is essential for QA work in non-local environments. SSH lets you execute commands on remote machines. SCP lets you…
3.8🔒Exercises19. Use grep to find all lines containing "ERROR" in a log file. Then use grep -c to count them. 20. Use curl to make a GET request to…
3.9🔒Career Translation- Investigated production incidents using grep, curl, and jq to parse application logs and API responses, reducing mean time to root-cause…
3.10🔒Q&AInterview Depth CheckPrompt: An API endpoint that returns a paginated list of users is sometimes returning duplicate entries across pages. You need to verify…