7.8. Conclusion

Knowing regular expressions and how to use them is an important part of shell programming, making the difference between an OK script and a good script. It saves you time in coding if you know what text to extract in one command, instead of using three or four different commands to get the same result.

Now that we have gone over the basic special characters used for regular expressions, wouldn’t it be great if there were some examples of these? It’s OK to see regular expressions explained, but we really want to see some working examples.

Well, we’ll see plenty of examples when we cover grep, sed and awk.

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.