grep awk sed Cheat Sheet — Text Processing Commands Free
Interactive reference for grep, awk, and sed with practical examples. Search, filter, transform text files in Linux. Free cheat sheet for developers and sysadmins.
Help Us Improve
Be the first to rate!
Frequently Asked Questions
How do I use grep to search recursively?
grep -r 'pattern' /path/to/dir — searches all files recursively. Add -l to show only filenames, -n for line numbers, -i for case-insensitive.
Is grep/awk/sed Cheat Sheet free?
Yes, this cheat sheet on ToolPix is 100% free with no signup or installation required.
Is my data safe?
This is a static reference tool. No data is entered or transmitted.
How do I replace text in a file with sed?
sed -i 's/old/new/g' file.txt — replaces all occurrences in-place. Remove -i to preview output first. Use s/old/new/ (no g) to replace only the first match per line.
How do I print the 3rd column with awk?
awk '{print $3}' file.txt — prints the 3rd whitespace-delimited field. Use -F: to change delimiter: awk -F: '{print $3}' /etc/passwd
Related Tools
CSS Minifier
Minify and compress CSS code. Remove comments, whitespa…
JWT Decoder
Decode and inspect JWT tokens. View header, payload, an…
Regex Tester
Test and debug regular expressions with real-time match…
Diff Checker
Compare two texts side by side. Highlight additions, de…
Cron Expression Generator
Build cron expressions visually with a point-and-click …