#/bin/bash
#$1
#$2
#$3
#$4
`echo $1,$2,$3,$4 >> /data/shell/46_nginx.txt`
for line in {1..4}
do
echo $line
`cat /data/shell/46_nginx.txt | awk -F ‘,‘ ‘{print $‘$line‘}‘ >> /data/shell/app_name.txt`
done
`date "+%Y-%m-%d %H:%M:%S" >> /data/shell/app_name.txt`
`cat /data/shell/46_nginx.txt | awk -F ‘,‘ {‘print $2‘} | awk -F ‘.‘ {‘print $1‘} >> /data/shell/app_name.txt`
python3 /data/orm_py/orm_46_nginx.py
echo -n "" > /data/shell/46_nginx.txt
echo -n "" > /data/shell/app_name.txt
原文:https://www.cnblogs.com/quemengqio/p/14707459.html