Skip to Content
Learn Linux Shell Scripting - Fundamentals of Bash 4.4
book

Learn Linux Shell Scripting - Fundamentals of Bash 4.4

by Sebastiaan Tammer
December 2018
Beginner
452 pages
12h 17m
English
Packt Publishing
Content preview from Learn Linux Shell Scripting - Fundamentals of Bash 4.4

Chapter 10

  1. What is a search pattern? A regular expression syntax which allows us to find pieces of text with specified characteristics, such as length, content and location on a line.
  2. Why are regular expressions considered greedy? Most regular expression try to find as much data as they can that match the search pattern. This includes whitespace and other punctuation, which is a logical separation for humans but not necessarily for a machine.
  3. Which character in search patterns is considered a wildcard for any one character, except newlines? The dot (.).
  4. How is the asterisk used in Linux regular expression search patterns? The * is used in combination with another character to allow it to form a repeating character. Example search pattern: ...
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

Bash Scripting Fundamentals

Bash Scripting Fundamentals

Sander van Vugt

Publisher Resources

ISBN: 9781788995597Supplemental Content