From fdde35a182e3f2b84a3c54a2bbf4c3ab2599a648 Mon Sep 17 00:00:00 2001 From: hophacker Date: Wed, 16 Mar 2022 12:27:31 +0800 Subject: [PATCH] feat: list-large-files for both mac/linux --- zsh/functions.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 4de86d5..4af67e4 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -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 }