feat: list-large-files for both mac/linux

This commit is contained in:
hophacker 2022-03-16 12:27:31 +08:00
parent 645f6c59da
commit fdde35a182

View File

@ -346,7 +346,7 @@ function random-string {
function list-large-files {
LIST=`du $1`
echo $LIST | grep '\dK.' | sort -n
echo $LIST | grep '\dM.' | sort -n
echo $LIST | grep '\dG.' | sort -n
echo $LIST | grep '^[0-9.]*K.' | sort -n
echo $LIST | grep '^[0-9.]*M.' | sort -n
echo $LIST | grep '^[0-9.]*G.' | sort -n
}