Various Linux scripts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
438 B

#!/bin/bash
#Создан: Пт 26 фев 2016 21:32:55
#Изменён: Пт 26 фев 2016 21:33:31
#- Вывод размера файлов в отсортированном виде
\du -smc "$@" | sort -gr | awk '{
if ($1 > 1024) {
printf("%s%10sG","'$red'",sprintf("%.2f",$1/1024))
} else if ($1 > 1) {
printf("%s%10sM","'$yellow'",$1)
} else {
printf("%s%10sM","'$blue'","~"$1)
}
sub($1,"")
print $0,"'$rstc'"
}'