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.


232 visits (1 today, 9 this week, 53 this month, 232 this year)
Uptime: 19:50:30 up 10 days, 1:33, 7 users, load average: 0.00, 0.00, 1.17
18.119.117.122 GET from server z.larryforalaska.com

Friday, December 27, 2024 @ 7:50:30 PM
z.ServerAdmin@lam1.us