The Baeldung logo
  • The Baeldung LogoLinux Sublogo
  • Start Here
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

Scripting » grep

Scripting allows us to programmatically interact with the Linux operating system. Learn about some basic scripting fundamentals as well as some advanced topics focused on Bash.

  • bash (125)
  • awk (65)
  • sed (47)
  • echo (35)
  • Shell (31)
  • x grep (28)
  • printf (19)
  • perl (16)
  • read (13)
  • date (12)
  • tr (12)
  • find (11)
  • xargs (11)
  • cat (11)
  • set (10)
  • Python (10)
  • export (9)
  • regex (9)
  • source (8)
  • cut (8)
  • ls (8)
  • alias (8)
  • tail (7)
  • script (7)
  • curl (7)
  • tee (7)
  • copy-edit (7)
  • env (6)
  • ping (5)
  • cd (5)
  • tar (5)
  • expr (5)
  • vim (5)
  • sort (5)
  • cron (5)
  • watch (5)
  • expect (5)
  • ssh (5)
  • eval (4)
  • pushd (4)
  • JSON (4)
  • rsync (4)
  • nohup (4)
  • time (4)
  • vi (4)
  • wait (4)
  • sudo (4)
  • let (4)
  • pdf (3)
  • ImageMagick (3)
  • Docker (3)
  • cp (3)
  • ps (3)
  • make (3)
  • chmod (3)
  • pgrep (3)
  • readlink (3)
  • exit (3)
  • reference (3)
  • wget (3)
  • paste (3)

>> How to Export Variables From a File

>> How to Use grep on a Bash Variable

>> Checking the Validity of an IP Address in Linux

>> How to Store Standard Error Messages in a Linux Variable

>> How to grep Lines Containing N Digits or Numbers

>> How to Count the Number of Matching Patterns Using awk

>> Returning a Regular Expression (Regex) Match in the Shell

>> How to Match a String with a Fixed Numbers of Characters in Linux

>> Matching Uppercase and Lowercase Letters With Regex in Shell

>> How to Use grep in an if-else Statement in Bash

>> How to Remove Lines That Contain Fewer Than n Characters

>> How to Delete Text Before a Delimiter From the Command Line

>> Check if a Bash Array Contains a Value

>> Extract Text Between Two Specific Characters in the Command Line

>> How to Extract “n” Characters Before and After a Match in Shell

>> How to Filter strace’s Output Using grep

>> In What Order Do Piped Commands Run?

>> Raise an Error in Bash Script

>> How to Write Stdout to a File with Colors

>> Using grep on a Continuous Stream

>> How to Remove Non UTF-8 Characters From a File

>> Check if a Variable Exists in a List in Bash

>> Filtering Only the Standard Error in Linux

>> Kill a Process Running on a Specific Port in Linux

>> Check if a String Contains a Substring in Linux

>> Difference Between grep, sed, and awk

>> What Does a Double-Dash in Shell Commands Mean?

>> Remove the First Characters of a Line

  • ↑ Back to Top
The Baeldung logo

Categories

  • Administration
  • Files
  • Filesystems
  • Installation
  • Networking
  • Processes
  • Scripting
  • Search
  • Security
  • Web

Series

  • Linux Administration
  • Linux Files
  • Linux Processes

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo