Автор: Oswald Campesato
Издательство: Mercury Learning and Information
Год: 2023
Страниц: 385
Язык: английский
Формат: pdf, epub, mobi
Размер: 10.2 MB
The goal of this book is to introduce readers to three powerful command line utilities that can be combined to create simple yet powerful shell scripts for performing a multitude of tasks. The code samples and scripts use the bash shell, and typically involve very small text files so that you can focus on understanding the features of grep, sed, and awk. In the simplest terms, grep (global regular expression print) will search input files in data for certain words or word patterns and print the lines that match it. sed is useful for changing or modifying data. Awk is a programming language also used for searching a data file for certain patterns, but can also perform certain tasks on the pattern matches it finds. Aimed at a reader relatively new to working in a bash environment, the book is comprehensive enough to be a good reference and teach a few new tricks to those who already have some experience with these command line utilities.
This book takes introductory concepts and demonstrates their use in simple yet powerful shell scripts. Keep in mind that this book does not cover “pure” system administration functionality.
This book is intended for general users as well as anyone who wants to perform a variety of tasks from the command line.
You will acquire an understanding of how to use grep, sed, and awk whose functionality is discussed in the first five chapters. Specifically, Chapter 1 introduces the grep command, Chapter 2 introduces the sed command, and Chapters 3 through 5 discuss the awk command. The sixth and final chapter introduces you to regular expressions. This book saves you the time required to search for relevant code samples, adapting them to your specific needs, which is a potentially time-consuming process.
Features:
Designed for readers relatively new to working in a bash environment
Introduces readers to three powerful command line utilities that can be combined to createsimple yet powerful shell scripts for performing a multitude of tasks
Includes numerous code samples and scripts using the bash shell, and typically involvesmall, text files
Features a separate chapter on regular expressions using these tools
Скачать Working with Grep, Sed, and Awk. Pocket Primer