Acting Like a Typewriter and File Explorer

 In this chapter, we will introduce the following:

  • Basic searching for strings and files
  • Using wildcards and regexes
  • Math and calculations in script
  • Striping/altering/sorting/deleting/searching strings with Bash only
  • Using SED and AWK to remove/replace substrings
  • Formatting your data/output using echo and printf
  • Readying your script for different languages with internationalization
  • Calculating statistics and reducing duplicates based on file contents
  • Using file attributes with conditional logic
  • Reading delimited data and altered output format

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.