Reputation
16,321
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
11 68 127
Newest
 Good Answer
Impact
~1.2m people reached

May
8
awarded  Good Answer
May
7
awarded  Popular Question
May
7
awarded  Nice Question
May
6
awarded  Notable Question
May
4
comment recursive statistics on file types in directory?
@bela83, the prune variants rely on short-circuit evaluation - thus, my first version find -name '.*' -prune -o -type f -print evaluates like: if directory entry matches .* then prune it, otherwise if it is a file then print it. Since .* also matches ., i.e. the CWD, everything is pruned, i.e. find does not even descend into the first directory. Perhaps, 2 year old versions of find behaved differently - or it was just an oversight of me, back then. Anyhow, find -name '.*' -not -name . -prune -o -type f -print fixes this.
May
4
comment recursive statistics on file types in directory?
@bela83, I don't thing that your version yields the desired results - it also prunes too much. My version from my last comment prunes too much, as well (it prunes also .) - a better version should be: find -name '.*' -not -name . -prune -o -type f -print
May
1
awarded  Popular Question
Apr
28
awarded  Favorite Question
Apr
27
comment How to run custom scripts upon USB device plug-in?
@natenho, you can use ~/path/mountcopystuff.sh & - at etc. has the advantage that you get email notifications in case something goes wrong - but on an embedded system this probably isn't of much interest.
Apr
27
revised On-the-fly monitoring HTTP requests on a network interface?
fix grammar
Apr
26
awarded  Popular Question
Apr
25
comment VISUAL vs EDITOR what's the difference?
@PavelŠimerda, just setting EDITOR is not enough e.g. for git on Ubuntu 12.04. Without VISUAL being set git ignores EDITOR and just uses nano (the compiled in default, I guess).
Apr
23
awarded  Nice Answer
Apr
21
awarded  Good Answer
Apr
21
awarded  Notable Question
Apr
20
awarded  Notable Question
Apr
16
awarded  Notable Question
Apr
8
awarded  Popular Question
Apr
7
awarded  bash
Apr
3
awarded  Notable Question