Skip to Content
Linux Shell Scripting Cookbook - Third Edition
book

Linux Shell Scripting Cookbook - Third Edition

by Clif Flynt, Sarath Lakshman, Shantanu Tushar
May 2017
Beginner
552 pages
28h 47m
English
Packt Publishing
Content preview from Linux Shell Scripting Cookbook - Third Edition

Other

Here are other characters that fine–tune how a regular expression will be parsed.

()

This treats the terms enclosed as one entity

ma(tri)?x matches max or matrix

|

This specifies alternation-; one of the items on either of side of | should match

Oct (1st | 2nd) matches Oct 1st or Oct 2nd

\

This is the escape character for escaping any of the special characters mentioned previously

a\.b matches a.b, but not ajb; it ignores the special meaning of . because of \

For more details on the regular expression components available, you can refer to http://www.linuxforu.com/2011/04/sed-explained-part-1/.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Shell Scripting - Second Edition

Mastering Linux Shell Scripting - Second Edition

Mokhtar Ebrahim, Andrew Mallett

Publisher Resources

ISBN: 9781785881985