shell脚本通过用户输入查看不同的日志
#!/bin/sh
read -t 30 -p '请输入查看的日志类型:' name
tail -f /web/php_xiuxiu_admin/storage/logs/laravel.log | grep -i "$name"
shell脚本通过用户输入查看不同的日志
#!/bin/sh
read -t 30 -p '请输入查看的日志类型:' name
tail -f /web/php_xiuxiu_admin/storage/logs/laravel.log | grep -i "$name"