diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-02 14:44:30 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-02 14:44:30 +1200 |
commit | 0b5964450b7dd9ae11d6449ddc39472cac86036c (patch) | |
tree | f52445d0488270dc435dd9a1abeeea2b37e9c88d /man/man1/cfr.1df | |
parent | Small correction to cfr(1df) notes (diff) | |
download | dotfiles-0b5964450b7dd9ae11d6449ddc39472cac86036c.tar.gz dotfiles-0b5964450b7dd9ae11d6449ddc39472cac86036c.zip |
Another correction to cfr(1df) manual page
Diffstat (limited to 'man/man1/cfr.1df')
-rw-r--r-- | man/man1/cfr.1df | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/man/man1/cfr.1df b/man/man1/cfr.1df index 2ec636bf..bd56f6eb 100644 --- a/man/man1/cfr.1df +++ b/man/man1/cfr.1df @@ -19,10 +19,11 @@ not follow symbolic links. .SH NOTES You might think this would be better; it's certainly faster: .P - $ find . | wc -l + $ find . -mindepth 1 -print | wc -l .P However, it's subtly wrong; it will double-count anything with a path that -contains a newline! +contains a newline! You could use -print0 and count null characters instead, +but then you've broken POSIX already. .P cfr(1df) and cf(1df) are POSIX-fearing as far as I can tell (please correct me), but there are faster but less compatible ways to do this, while still |