From d9c87962399f90aa85363ca3496d0b2affd4af51 Mon Sep 17 00:00:00 2001 From: Michael Diamond Date: Mon, 5 Oct 2015 18:43:26 -0400 Subject: [PATCH] Tweak the language for the grep . * tip. The previous text didn't highlight why this is more useful than, say `cat *` or `vi *`. Personally, I still don't think it's that useful, but this seems a little clearer, at least. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5cebd78..242c604 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 . *` to visually examine all contents of all files in a directory, e.g. for directories filled with config settings, like `/sys`, `/proc`, `/etc`. +- 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`. - Summing all numbers in the third column of a text file (this is probably 3X faster and 3X less code than equivalent Python):