Bash Cookbook for Archivists

Table of Contents


Preface

Variables (and Arrays)

Functions

Flow Control

Redirections

Built-in Commands

Regular Expressions

External Utilities

  • awk – Pattern-directed scanning and processing language
  • cat – Concatenate and print files
  • comm – Select or reject lines common to two files
  • curl – Transfer a URL
  • diff – Compare files line by line
  • grep – File pattern searcher
  • patch – Apply a diff file to an original
  • sed – Stream editor
  • split – Split a file into pieces

Appendix: Examples

  • Bash AVpres is a set of Bash scripts for audio-visual preservation

2022-04-16