mirror of
https://github.com/trimstray/the-book-of-secret-knowledge.git
synced 2024-12-18 17:36:14 +00:00
new one-liner for 'diff'
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
6a0c0742a6
commit
ecf087c7b8
@ -1822,6 +1822,12 @@ ___
|
|||||||
diff <(cd directory1 && find | sort) <(cd directory2 && find | sort)
|
diff <(cd directory1 && find | sort) <(cd directory2 && find | sort)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###### Compare output of two commands
|
||||||
|
|
||||||
|
```bash
|
||||||
|
diff <(cat /etc/passwd) <(cut -f2 /etc/passwd)
|
||||||
|
```
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
##### Tool: [tail](https://en.wikipedia.org/wiki/Tail_(Unix))
|
##### Tool: [tail](https://en.wikipedia.org/wiki/Tail_(Unix))
|
||||||
|
Loading…
Reference in New Issue
Block a user