O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required