awk - To take only the number in Size in unix -


i trying identify file contributing more in directory structure. doing following steps manually

example: du -sh * [0-9]g give me folders inside having gb size.

2.0g images 3.7g files 8.9g audio 

i want variable take highest sized directory size 8.9, how can in awk or grep

i might change bit to:

du -sk .??* * | sort -rn | head -1 

the interesting difference .??* * catch pesky "hidden" directories. chief among offenders .cache.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -