13,420
edits
Changes
→INVESTIGATION 3: OTHER COMMANDS THAT USE REGULAR EXPRESSIONS
# 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. '''/regular expression/''' or '''/regular expression''').<br><br>
# Press the letter <span style="color:blue;font-weight:bold;font-family:courier;">q</span> to exit the man pages for '''ls'''.<br><br>
#Let's use regular expressions with the '''more''' command.<br>Issue the following linux commandto view the contents of the textfile1.txt (downloaded in a previous section:<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>
#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>