mirror of
https://github.com/jlevy/the-art-of-command-line.git
synced 2024-12-04 10:24:46 +02:00
Brevity on #51
This commit is contained in:
parent
5e493924cc
commit
b4900c408e
@ -242,11 +242,8 @@ 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. Useful for directories filled with config settings, like /sys /proc /etc.
|
||||
```sh
|
||||
cd /proc/sys/net/ipv4
|
||||
grep . *
|
||||
```
|
||||
- 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`.
|
||||
|
||||
|
||||
- Summing all numbers in the third column of a text file (this is probably 3X faster and 3X less code than equivalent Python):
|
||||
```sh
|
||||
|
Loading…
Reference in New Issue
Block a user