From f7b9f0f29e2f37d6fbd19d16cab8ecfd39d6e529 Mon Sep 17 00:00:00 2001 From: Htylol Date: Sat, 10 Aug 2024 11:45:07 +0500 Subject: [PATCH] Update sort --- data_from_portwine/scripts/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 633da0f0..019476b8 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -467,7 +467,8 @@ use: [--repair] [--reinstall] [--autoinstall] exit 0 ;; '--server-file-access' ) echo - curl -s --list-only "https://cloud.linux-gaming.ru/log/$(date +20%y_%m)_file_access.log" | sort -V -k 2,2 + curl -s --list-only "https://cloud.linux-gaming.ru/log/$(date +20%y_%m)_file_access.log" | sort -V -k 2,2 \ + | sed 's/count=//g' | awk '{a=$1; $1=$2; $2=a} 1' | awk 'BEGIN {print "Count: Name:"} {print}' | column -t echo exit 0 ;; esac