shell批量插入mysql数据
公司有90万的数据要插入进mysql,不想手动去一条一条插入,就单独写了个shell来执行.
cat /root/soft_shell/insert_sql.sh
#!/bin/bash
file=`find ./ -name "*.txt"`
user="root"
passwd="rocdk890"
database="rocdk890"
cat $file | while read line
do
num1=`echo $line |awk '{print $1}'`
num2=`echo $line |awk '{print $2}'`
num3=`echo...

