SED Essential Training
Offered By: LinkedIn Learning
Course Description
Overview
Unlock the power of SED, the simple but powerful command line tool for extracting, transforming, and manipulating data in files and data streams.
Syllabus
Introduction
- Welcome
- What is sed?
- What you should know before watching this course
- Using the exercise files
- Using the most important sed command
- Understanding input, output, files, and pipes
- Quoting command-line arguments
- Modifying the "s" command
- Introducing regular expressions
- Using character classes and quantifiers
- Using & and \n
- Controlling printing with -n and the "p" modifier
- Specifying multiple commands with -e and -f
- Challenge: Change ten thousand men to one woman
- Solution: Change ten thousand men to one woman
- Understanding addresses and address ranges
- Printing lines with "p"
- Deleting lines with "d"
- Reading and writing files with "r" and "w"
- Performing transformations with "y"
- Appending, inserting, and changing entire lines with "a", "i," and "c"
- Challenge: Write the main() function from array.c to file main.c
- Solution: Write the main() function from array.c to file main.c
- Grouping commands with "{" and "}"
- Getting the next line with "n"
- Exiting with "q" and "d"
- Commenting with "#"; debugging with "l" and "="
- Managing multi-line pattern space with "N", "D," and "P"
- Flow control with ":", "b," and "t"
- Managing the hold buffer with "g", "G", "h", "H," and "x"
- Challenge: Convert first three words of each line to all caps
- Solution: Convert first three words of each line to all caps
- Next steps
Taught by
David D. Levine
Related Courses
Shell Scripting with Bash: BasicsCoursera Project Network via Coursera Build File Utilities with Linux Shell Script
Coursera Project Network via Coursera Creating Robust Workflows in Python
DataCamp Linux Administration Certification Training
Edureka Unix Shell Scripting Certification Training
Edureka