Created
January 8, 2011 20:53
-
-
Save phosphene/771145 to your computer and use it in GitHub Desktop.
du -ch piped to ack find dir outputs with Gig multiples and hundreds of megs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@phosphene /]# du -ch | ack "^[\d\.]+?G|^\d{3,4}M" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
du -ch pipe to
ack
[\d.]+?G
one or more digit character or literal dot followed by G
\d{3,4}M
notable that megabytes sometime represented as 1008M, hence \d{3,4} 3 or 4 digit chars then M