Working with grep, sed and awk Pocket Primer

  • 3h 18m
  • Oswald Campesato
  • Mercury Learning
  • 2023

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.

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

About the Author

Oswald Campesato (San Francisco, CA) is an adjunct instructor at UC-Santa Cruz and specializes in Deep Learning, NLP, Android, and Python. He is the author/co-author of over forty-five books including Data Science Fundamentals Pocket Primer, Python 3 for Machine Learning, and the Python Pocket Primer (Mercury Learning and Information).

In this Book

  • Working with GREP
  • Working with SED
  • Working with AWK
  • Working with awk, Part 2
  • Working with awk, Part 3
  • Regular Expressions