Hi All,
I am trying to sort /home/e-smith/files/users into something sensible so that I can send out an automated monthly summary of size.
Here's my feeble effort so far...
# du -h --max-depth=1 | sort -n -r > totals.txt
The problem with this is that the outputted list is a little jumbled...
447M
8.0K
7.1G
So now I need to get all those user with 'G' at the top of the list, then 'M' and if I could remove the du total entirely that would be good.
Any tips?
Thanks