• About
  • Privacy
  • Contact
  • Linux
  • SSH
  • Ubuntu
  • Apache
  • PuTTY
  • PHP
  • AWS
  • SUSE
  • macOS
  • Python
  • Windows
  • cURL
  • Wget
  • MySQL
  • nginx
All topics
  • Amazon Web Services (AWS)
  • Anaconda
  • Apache HTTP Server
  • Apache Tomcat
  • Bash
  • Certbot
  • Codex
  • cPanel
  • cURL
  • Debian
  • Docker
  • Eclipse
  • Elastic Stack
  • firewalld
  • Gekko
  • Gentoo Linux
  • Git
  • GlusterFS
  • Gmail
  • GNU Screen
  • Google Ads
  • Google AdSense
  • Google Analytics
  • Google Chrome and Chromium
  • Google Workspace
  • grep, awk, sed, and regular expressions
  • HAProxy
  • HTML
  • ImageMagick
  • iPhone and iPad
  • iproute2
  • iptables
  • Java
  • JavaScript
  • Kubuntu
  • Linux
  • Logical Volume Manager (LVM)
  • macOS
  • Microsoft Windows
  • Mozilla Firefox
  • MySQL and MariaDB
  • Netcat (nc)
  • Network File System (NFS)
  • Network Security
  • nginx
  • Node.js
  • OpenNebula
  • OpenSSL
  • openSUSE and SUSE Linux Enterprise Server (SLES)
  • Pacemaker
  • PHP
  • PHP cURL
  • phpMyAdmin
  • PostgreSQL
  • PuTTY
  • Python
  • Raspberry Pi and Raspberry Pi OS
  • Red Hat Enterprise Linux (RHEL), CentOS, and Fedora
  • Redmine
  • rsync
  • Scrapy
  • Secure Shell (SSH)
  • Selenium
  • SMB/CIFS
  • Snort
  • Spotify
  • sudo
  • syslog
  • systemd
  • tcpdump
  • tmux
  • Ubuntu
  • Vim
  • VirtualBox
  • Webmaster and Search Engine Optimization (SEO)
  • Wget
  • WHOIS
  • Wireshark
  • WordPress
  • Zsh

grep, awk, sed, and regular expressions

Guide listing for grep, awk, sed, and regular expressions
How to calculate an average with awk
How to convert delimiters with awk
How to count rows by field with awk
How to filter rows by a column with awk
How to join two files by key with awk
How to process multiline records with awk
How to print selected columns with awk
How to sum a column with awk
How to audit configuration values with grep, awk, and sed
How to search case-insensitively with grep
How to count matches with grep
How to exclude files and directories from grep
How to exclude matching lines with grep
How to list files that contain a grep match
How to print context around grep matches
How to search compressed logs with zgrep
How to search files recursively with grep
How to extract error counts from logs with grep, awk, and sed
How to redact sensitive fields from logs with sed
How to extract email addresses with grep
How to test a regular expression with grep
How to delete matching lines with sed
How to preview replacements with sed
How to print a line range with sed
How to remove blank lines with sed
How to replace text in files with sed
Simplified Guide Back to top