Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- du -s /media/HDD/.Trash-0/ /home/MYUSER/.local/share/Trash/ |awk '
- BEGIN { print " Trashes" };
- {
- if ($1 > 10000000)
- {print " "$2 "\t\t" $1/1000000.0 " GB"}
- else
- {print " "$2 "\t" $1/1000.0 " MB"}
- }
- END { print "" }' CONVFMT="%.2f"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement