Changes

Jump to: navigation, search

Tutorial9: Regular Expressions

131 bytes added, 09:19, 8 July 2020
INVESTIGATION 3: OTHER COMMANDS THAT USE REGULAR EXPRESSIONS
#We want to search for a pattern '''uli101''' within this text file.<br>Type the following regular expression and press ENTER:<br><span style="color:blue;font-weight:bold;font-family:courier;">/uli101</span><br><br>What did you notice?<br><br>
#Search for the next occurrence of the pattern '''uli101''' by issuing:<br><span style="color:blue;font-weight:bold;font-family:courier;">/uli101</span><br><br>you should now see the second occurrence of this pattern within the text file.<br><br>
# Press the letter <span style="color:blue;font-weight:bold;font-family:courier;">q</span> to exit the '''more''' command.<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