Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
SED Essential Training

SED Essential Training

2h 1mBeginner2015-06-10

Authors

David D. Levine

David D. Levine

Making technology better for people

Course details

SED is the one of the original command line tools for parsing and transforming data on Unix, Linux, and Macintosh machines. David D. Levine helps you unlock the power of SED's compact syntax in these lessons, which cover extracting, transforming, and manipulating data in files and data streams. He reviews the basic commands, including one you'll never want to forget, and shows how to work with regular expressions. The course also covers SED's more advanced programming features, which allow you to write simple programs and manage multiline pattern space, flow, and the hold buffer with a few simple keystrokes. Start here to learn the essentials of this versatile tool.

Learning objectives
Understanding input, output, files, and pipes
Modifying the "s" command
Using character classes and quantifiers
Controlling printing
Reading and writing files
Appending, inserting, and editing entire lines
Writing programs in SED
Using advanced programming commands

Skills covered

SEDEssential TrainingProgramming LanguagesOpen SourceSoftware Development

Concepts

0. Introduction

  • 01 - Welcome
  • 02 - What is sed
  • 03 - What you should know before watching this course
  • 04 - Using the exercise files

1. Sed Command-Line Basics

  • 05 - Using the most important sed command
  • 06 - Understanding input, output, files, and pipes
  • 07 - Quoting command-line arguments
  • 08 - Modifying the s command

2. Regular Expressions

  • 09 - Introducing regular expressions
  • 10 - Using character classes and quantifiers
  • 11 - Using & and n

3. Sed Command-Line Flags

  • 12 - Controlling printing with -n and the p modifier
  • 13 - Specifying multiple commands with -e and -f
  • 14 - Challenge - Change ten thousand men to one woman
  • 15 - Solution - Change ten thousand men to one woman

4. More sed Commands

  • 16 - Understanding addresses and address ranges
  • 17 - Printing lines with p
  • 18 - Deleting lines with d
  • 19 - Reading and writing files with r and w
  • 20 - Performing transformations with y
  • 21 - Appending, inserting, and changing entire lines with a , i, and c
  • 22 - Challenge - Write the main() function from array.c to file main.c
  • 23 - Solution - Write the main() function from array.c to file main.c

5. Writing Programs in sed

  • 24 - Grouping commands with and
  • 25 - Getting the next line with n
  • 26 - Exiting with q and d
  • 27 - Commenting with # debugging with l and

6. Advanced Programming Concepts

  • 28 - Managing multi-line pattern space with N , D, and P
  • 29 - Flow control with - , b, and t
  • 30 - Managing the hold buffer with g , G , h , H, and x
  • 31 - Challenge - Convert first three words of each line to all caps
  • 32 - Solution - Convert first three words of each line to all caps

Goodbye

  • 33 - Next steps

Related courses

Related learn paths

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
zarinpal
zibal