Skip to content

Instantly share code, notes, and snippets.

@phosphene
Created January 8, 2011 20:20
Show Gist options
  • Save phosphene/771121 to your computer and use it in GitHub Desktop.
Save phosphene/771121 to your computer and use it in GitHub Desktop.
disk usage human readable output pipe to ack and show only dirs with Gig multiples
[root@phosphene /]# du -ch | ack "^[\d\.]*?G"
@phosphene
Copy link
Author

-c gives a grand total -h human-readable
ack
^ begin of line
[\d.] numerical character or literal dot
+? one or more non-greedy match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment