grep / awk / sed Cheat Sheet

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!

Master grep, awk, and sed with an interactive cheat sheet featuring real-world examples. Quickly reference commands for searching, filtering, and transforming text files in Linux without leaving your browser.

How it works

  1. 1Select grep, awk, or sed from the tool interface
  2. 2Browse practical examples or search for specific tasks
  3. 3Copy commands and adapt them to your use case
  4. 4Reference regex patterns in the quick reference panel

Who uses this tool

  • ✓System administrators automating log file analysis and parsing
  • ✓Developers filtering and transforming text data in scripts
  • ✓DevOps engineers processing configuration files efficiently
  • ✓Linux users learning command-line text processing tools
  • ✓Data analysts extracting and manipulating structured text

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