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.
This commit is contained in:
Michael Diamond 2015-10-05 18:43:26 -04:00
parent efd60f49e7
commit d9c8796239

View file

@ -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):