Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
增加首页用户在线列表,删除一些调试输出
Browse files Browse the repository at this point in the history
  • Loading branch information
nsfoxer committed Apr 8, 2020
1 parent b13a7ff commit 6172d54
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/get_users_num.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
# 2020年 04月 08日 星期三 12:04:33 CST
# 输入:无
# 输出: ../temp/current_users.log
location=$(dirname $0)
users=$(ls ${location}/../temp/ | grep '.txt' | grep -v log.txt| cut -d '_' -f 1 | uniq)
echo "$users";

if [[ $(echo "$users" | wc -w) == 0 ]]
then
users="无人在线";
fi
echo "$users";

echo ${users} > ${location}/../temp/current_users.log

0 comments on commit 6172d54

Please sign in to comment.