Use parentheses to create the string matches you need in regular expressions. Parentheses allows you to use pipes for multiple matches.
Read more »String Matches in Regular Expressions
- Login to post comments
Matching Literal Text Strings to Locate Data in Shell Scripting
One of the most powerful tools available to you in shell scripting is the ability to search for text strings which highlight the information you need.
Read more »Category: Beginner Tags:
- Login to post comments
13 Features of Regular Expressions
Regular expressions provide a robust set of features in the Bash Shell. This article lists 13 features you need to know about regex.
Read more »Category: Beginner Tags:
- Login to post comments
Finding Things on Linux and Understanding Regular Expressions
Juliet Kemp shares some useful regular expressions for finding things on your Linux system. She also guides us through the perilous minefields of single quotes, double quotes, and shell expansion, and shows us how to craft our own custom regular expressions.
Read more »- Login to post comments
Bash Regular Expressions
When working with regular expressions in a shell script the norm is to use grep or sed or some other external command/program. Since version 3 of bash (released in 2004) there is another option: bash's built-in regular expression comparison operator "=~".
Read more »Category: High End Tags:
- Login to post comments
Know your regular expressions
This article describes some useful tools and techniques for learning to build and hone regexps across a range of UNIX® applications, including:
* Highlighting matches
* Showing only the matches and not the lines
* Calling a wizard
* Studying docs
Category: High End Tags:
- Login to post comments