SED Essential Training Год выпуска: 2015 Производитель: Lynda Сайт производителя: lynda.com Автор: David D. Levine Продолжительность: 2:01 Тип раздаваемого материала: Видеоурок Язык: Английский Описание: 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. SED - один из оригинальных консольных инструментов для анализа и трансформации данных на компьютерах под управлением Unix, Linux и Macintosh.
Содержание
Introduction Welcome What is sed? What you should know before watching this course Using the exercise files 1. Sed Command-Line Basics Using the most important sed command Understanding input, output, files, and pipes Quoting command-line arguments Modifying the "s" command 2. Regular Expressions Introducing regular expressions Using character classes and quantifiers Using & and \n 3. Sed Command-Line Flags 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 4. More sed Commands 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 5. Writing Programs in sed Grouping commands with "{" and "}" Getting the next line with "n" Exiting with "q" and "d" Commenting with "#"; debugging with "l" and "=" 6. Advanced Programming Concepts 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 Goodbye Next steps
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum