Commit 511fb807 authored by Tomáš Szaniszlo's avatar Tomáš Szaniszlo
Browse files

Added tip: find with exclude

parent a76fe4db
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -80,6 +80,14 @@ Source: <https://wiki.debian.org/Keyboard>

- - -

**find excluding some directories**

Find and print all files in cwd except those in directory `.git` and those matching filename `.meta.*`:

find . -type f \( \( -path './.git/\*' -o -name '.meta.\*' \) -prune -o -print \)

- - -

**Other cheatsheets**

* Markdown: <http://packetlife.net/media/library/16/Markdown.pdf>