zhoushx1018
8 months ago
3 changed files with 117 additions and 21 deletions
@ -0,0 +1,38 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
|
||||
|
dirs_to=( |
||||
|
"/mnt/c/mt4-multi/demo--ic--00" |
||||
|
"/mnt/c/mt4-multi/demo--ic--01" |
||||
|
"/mnt/c/mt4-multi/demo--ic--02" |
||||
|
"/mnt/c/mt4-multi/pro--exness--01" |
||||
|
"/mnt/c/mt4-multi/pro--exness--02" |
||||
|
"/mnt/c/mt4-multi/pro--exness--03" |
||||
|
"/mnt/c/mt4-multi/pro--exness--04" |
||||
|
"/mnt/c/mt4-multi/pro--exness--05" |
||||
|
"/mnt/c/mt4-multi/pro--ic--06" |
||||
|
"/mnt/c/mt4-multi/pro--exness--07" |
||||
|
"/mnt/c/mt4-multi/pro--exness--08" |
||||
|
"/mnt/c/mt4-multi/pro--ic--10" |
||||
|
"/mnt/c/mt4-multi/pro--ic--11" |
||||
|
"/mnt/c/mt4-multi/pro--ic--12" |
||||
|
"/mnt/c/mt4-multi/pro--ic--13" |
||||
|
) |
||||
|
|
||||
|
# 判断参数个数是否小于 1 |
||||
|
if [ "$#" -lt 0 ]; then |
||||
|
echo "usage: ${0} ..." |
||||
|
echo " ${0} ..." |
||||
|
echo " ${0} ..." |
||||
|
echo " ..." |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
|
||||
|
echo ========================================= |
||||
|
for directory in ${dirs_to[@]}; do |
||||
|
echo "-----------${directory}---------------" |
||||
|
du -sh ${directory}/* |
||||
|
|
||||
|
echo "--------------------------" |
||||
|
done |
@ -0,0 +1,21 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
# 判断参数个数是否小于 1 |
||||
|
if [ "$#" -lt 1 ]; then |
||||
|
echo "usage: ${0} logFileName" |
||||
|
echo " ${0} 20231227.log" |
||||
|
echo " ${0} 20231230.log" |
||||
|
echo " ..." |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
while true; do |
||||
|
echo "clean file ..." |
||||
|
ls -lrth |
||||
|
: > ./$1 |
||||
|
ls -lrth |
||||
|
|
||||
|
echo "clean ok, sleep ..." |
||||
|
|
||||
|
sleep 50 |
||||
|
done |
Loading…
Reference in new issue