Changes

Jump to: navigation, search

Tutorial9: Regular Expressions

9 bytes added, 11:29, 28 February 2021
INVESTIGATION 3: OTHER COMMANDS THAT USE REGULAR EXPRESSIONS
'''Perform the Following Steps:'''
# Make certain that you are located in your '''home~/regexps''' directory on your ''Matrix '' account.<br><br>
# Let's look at using regular expressions with the '''man''' command.<br>Issue the following linux command :<br><span style="color:blue;font-weight:bold;font-family:courier;">man ls</span><br><br>
# We want to search for an option that can sort the file listing.<br>Type the following regular expression below and press '''ENTER''':<br><span style="color:blue;font-weight:bold;font-family:courier;">/sort</span><br><br>'''FYI:''' The '''grep''' and '''egrep''' linux commands contain the regular expressions within quotes,<br>but '''most''' other Linux commands specify regular expressions using forward slashes<br>(e.g. <span style="font-weight:bold;font-family:courier;">/regular expression</span> &nbsp; or &nbsp; <span style="font-weight:bold;font-family:courier;">/regular expression</span>).<br><br>
13,420
edits

Navigation menu