Changes

Jump to: navigation, search

Tutorial9: Regular Expressions

16 bytes added, 09:36, 4 July 2020
Regular Expressions vs. Filename Expansion
===Regular Expressions vs. Filename Expansion===
<table align="right"><tr valign="top"><td>[[Image:directoryre-structure-51.png|thumb|right|250px|Output of Filename expansion symbols allow the '''tree''' command Linux shell to display directory structureexpand filenames as arguments (referred to as “globbing”).]]</td><td>[[Image:directory-structurere-62.png|thumb|right|250px|Output of the '''ls -lR''' command to display directory structure.]]</td></table>In a previous lesson, you learned that filename expansion symbols allow the Linux shell to expand filenames as arguments (referred to as “globbing”) for file management commands. This is very useful for managing multiple files sharing similar characteristics such as the same file extension.
Regular expressions are used to search, edit and manipulate text and are used with Linux file management commands such as '''ls''', '''rm''', '''mv''', '''cp''', '''cat''', '''less''' and '''more'''. This can represent text contained in files or text as a result of issuing Linux commands using a pipeline.
13,420
edits

Navigation menu