Summary

4.4. Summary

Regular expressions are powerful tools for selecting particular lines from files or output. A lot of UNIX commands use regular expressions: vim, perl, the PostgreSQL database and so on. They can be made available in any language or application using external libraries, and they even found their way to non-UNIX systems. For instance, regular expressions are used in the Excell spreadsheet that comes with the MicroSoft Windows Office suite. In this chapter we got the feel of the grep command, which is indispensable in any UNIX environment.

Note

The grep command can do much more than the few tasks we discussed here; we only used it as an example for regular expressions. The GNU grep version comes with plenty of documentation, which you are strongly advised to read!

Bash has built-in features for matching patterns and can recognize character classes and ranges.


223 visits (2 today, 14 this week, 44 this month, 223 this year)
Uptime: 07:37:52 up 3 days, 13:21, 3 users, load average: 0.00, 0.00, 0.00
18.191.93.95 GET from server z.lamurakami.com

Saturday, December 21, 2024 @ 7:37:52 AM
z.ServerAdmin@lam1.us