Changes

Jump to: navigation, search

Tutorial9: Regular Expressions

213 bytes added, 09:00, 8 July 2020
INVESTIGATION 3: OTHER COMMANDS THAT USE REGULAR EXPRESSIONS
# 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>NOTE'''FYI: ''' The '''grep''' and '''egrep''' linux commands contain the regular expressions within quotes, but most other Linux commands specify regular expressions using forward slashes (i.e. /regular expression/.<br><br>
#Issue the following linux command:<br><span style="color:blue;font-weight:bold;font-family:courier;">wget <nowiki>https://ict.senecacollege.ca/~murray.saul/uli101/textfile1.txt</nowiki></span><br><br>
#Issue the following linux command:<br><span style="color:blue;font-weight:bold;font-family:courier;">wget <nowiki>https://ict.senecacollege.ca/~murray.saul/uli101/textfile1.txt</nowiki></span><br><br>
13,420
edits

Navigation menu