This short book explains how to do simple data analysis from the Unix or Linux command line, using only standard tools available in most shells on those operating system families.

This is a mirror of the book published on, under the CC-BY-SA-3.0 license, and copied from the revision of 2013-01-06. It is possible that the book on will have newer content. See for authorship credits.

Table of Contents

  1. Preliminaries
  2. Standard Input, Standard Output, Redirection and Pipes
  3. Counting Part 1 - grep and wc
  4. Picking The Data Apart With cut
  5. Joining The Data Together With join
  6. Counting Part 2 - sort and uniq
  7. Rewriting The Data With Inline perl
  8. Quick Plotting With gnuplot
  9. Appendices