From b564befde5655c81f0a0cc3d3bfb740f52e3f2ae Mon Sep 17 00:00:00 2001 From: Joshua Levy Date: Mon, 5 Oct 2015 21:16:37 -0700 Subject: [PATCH] Add another example of head And tweak language of #292. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 242c604..80ea240 100644 --- a/README.md +++ b/README.md @@ -295,7 +295,7 @@ A few examples of piecing together commands: cat a b b | sort | uniq -u > c # c is set difference a - b ``` -- Use `grep . * | less` to quickly examine the contents of all files in a directory - each line is paired with the filename. This can be useful for directories filled with config settings like those in `/sys`, `/proc`, `/etc`. +- Use `grep . *` to quickly examine the contents of all files in a directory (so each line is paired with the filename), or `head -100 *` (so each file has a heading). This can be useful for directories filled with config settings like those in `/sys`, `/proc`, `/etc`. - Summing all numbers in the third column of a text file (this is probably 3X faster and 3X less code than equivalent Python):