mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-25 00:56:29 +08:00
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:
parent
efd60f49e7
commit
d9c8796239
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue