Created
April 5, 2019 10:18
-
-
Save miceno/6926d553b7d51925d9b504f49cba9b39 to your computer and use it in GitHub Desktop.
Disk usage human sorted on HDFS
This file contains 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
#!/usr/bin/env bash | |
hdfs dfs -du -s -h $1/* | sed -e 's/ \([GMTK]\)/\1/g' | sort -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment