1
0
mirror of https://github.com/jlevy/the-art-of-command-line.git synced 2025-01-06 03:04:00 +02:00

Merge pull request #292 from dimo414/patch-1

Tweak the language for the grep . * tip.
This commit is contained in:
Joshua Levy 2015-10-05 21:14:10 -07:00
commit 7d16b5bd5c

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