linux

查看服务器分区 df -hl;

grep -n 查找的字符串  文件路径

批量执行sql文件查询

#!/bin/bash
for i in `ls /opt/e_data/`;do
    mysql -uroot -prootpassword -h10.10.10.10 DATABASE  <$i
done
原文地址:https://www.cnblogs.com/cmm2016/p/6600646.html