View on GitHub

NEH Institute materials

July 2017

Home | Admin | Week 1 | Week 2 | Week 3 | Misc

Command line 2

General

General review (see also below)

History and tab completion

Review

And something new

Getting around the file system review

Working with directories

Working with files

Wildcards (“globbing”; annoyingly different from regex)

Examples

Regex vs globbing

Practice with ls in data-shell/molecules

Reading from and writing to files

Save file listings with ls, file contents with cat, or command-line text with echo.

Filters

About filters

First filters

Redirect input, contrast wc file, wc < file

Filters and piping

Practice

In data-shell/north-pacific-gyre/2012-07-03 (experimental results; imagine hundreds of files):