7.4. Matching a single or string of characters with *
Using this special character allows us to match repeatedly any number of occurrences of any character or string. One example is:
compu*t
will match the character u once or repeatedly:
computer computing compuuuuute
Here’s another example:
10133*
will match
101333 10133 101344444
Get Linux and Unix Shell Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.