April 2018
Beginner
284 pages
7h 3m
English
To define a regex pattern, you can type the following:
$ echo "Welcome to shell scripting" | sed -n '/shell/p'$ echo "Welcome to shell scripting" | awk '/shell/{print $0}'

A very important thing you need to know about regex patterns in general is they are case sensitive:
$ echo "Welcome to shell scripting" | awk '/shell/{print $0}'$ echo "Welcome to SHELL scripting" | awk '/shell/{print $0}'

Say you want to match any of the following characters:
.*[]^${}\+?|()
You must escape them with a backslash because these characters ...