Changes

Jump to: navigation, search

Tutorial9: Regular Expressions

15 bytes removed, 09:38, 8 July 2020
INVESTIGATION 3: OTHER COMMANDS THAT USE REGULAR EXPRESSIONS
#Search for the next occurrence of the pattern '''uli101''' by re-typing the following regular expression and pressing ENTER:<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>
#Let's learn how to perform a simple '''search and replace in ''' within the '''vi ''' utility by using regular expressions.<br>Issue the following linux commandto edit the '''textfile1.txt''' file:<br><span style="color:blue;font-weight:bold;font-family:courier;">wget <nowiki>https://ict.senecacollege.ca/~murray.saul/uli101/vi textfile1.txt</nowiki></span><br><br>
= LINUX PRACTICE QUESTIONS =
13,420
edits

Navigation menu