Difference between revisions of "Tutorial 11 - SED & AWK"
Line 1: | Line 1: | ||
Content under development | Content under development | ||
+ | =USING SED & AWK UTILTIES= | ||
+ | <br> | ||
+ | ===Main Objectives of this Practice Tutorial=== | ||
+ | |||
+ | :* Use the '''sed''' command to '''manipulate text''' contained in a file. | ||
+ | |||
+ | :* List and explain several '''addresses''' and '''instructions''' associated with the '''sed''' command. | ||
+ | |||
+ | :* Use the '''sed''' command as a '''filter''' with Linux pipeline commands. | ||
+ | |||
+ | :* Use the '''awk''' command to '''manipulate text''' contained in a file. | ||
+ | |||
+ | :* List and explain '''comparison operators''', '''variables''' and '''actions''' associated with the '''awk''' command. | ||
+ | |||
+ | :* Use the '''awk''' command as a '''filter''' with Linux pipeline commands. | ||
+ | <br><br> | ||
+ | |||
+ | ===Tutorial Reference Material=== | ||
+ | |||
+ | {|width="100%" cellspacing="0" cellpadding="10" | ||
+ | |||
+ | |- valign="top" | ||
+ | |||
+ | |colspan="2" style="font-size:16px;font-weight:bold;border-bottom: thin solid black;border-spacing:0px;"|Course Notes<br> | ||
+ | |||
+ | |colspan="2" style="font-size:16px;font-weight:bold;border-bottom: thin solid black;border-spacing:0px;padding-left:15px;"|Linux Command/Shortcut Reference<br> | ||
+ | |||
+ | |- valign="top" style="padding-left:15px;" | ||
+ | |||
+ | |colspan="2" |Course Notes:<ul><li>[https://matrix.senecacollege.ca/~osl640/slides/OSL640-Week11.pdf PDF] | [https://matrix.senecacollege.ca/~osl640/slides/OSL640-Week11.pptx PPTX]</li></ul> | ||
+ | |||
+ | |||
+ | | style="padding-left:15px;" |Text Manipulation | ||
+ | * [https://www.digitalocean.com/community/tutorials/the-basics-of-using-the-sed-stream-editor-to-manipulate-text-in-linux Purpose of using the sed utility] | ||
+ | * [https://www.digitalocean.com/community/tutorials/how-to-use-the-awk-language-to-manipulate-text-in-linux Purpose of using the awk utility] | ||
+ | |||
+ | | style="padding-left:15px;" |Commands | ||
+ | * [https://man7.org/linux/man-pages/man1/sed.1p.html sed] | ||
+ | * [https://man7.org/linux/man-pages/man1/awk.1p.html awk] | ||
+ | |||
+ | |||
+ | |} | ||
= INVESTIGATION 1: USING THE SED UTILITY = | = INVESTIGATION 1: USING THE SED UTILITY = |
Revision as of 13:52, 14 November 2021
Content under development
Contents
USING SED & AWK UTILTIES
Main Objectives of this Practice Tutorial
- Use the sed command to manipulate text contained in a file.
- List and explain several addresses and instructions associated with the sed command.
- Use the sed command as a filter with Linux pipeline commands.
- Use the awk command to manipulate text contained in a file.
- List and explain comparison operators, variables and actions associated with the awk command.
- Use the awk command as a filter with Linux pipeline commands.
Tutorial Reference Material
Course Notes |
Linux Command/Shortcut Reference | ||
Course Notes:
|
Text Manipulation | Commands
|