随笔分类 - shell编程
摘要:#!/bin/bash #批量新建数据表 #删除`符号,具体原因我也没搞懂 for i in {1..30};do mysql 地址 -u账号 -p密码 -e "use 库名;CREATE TABLE ccms_order_test$i ( uni_order_id varchar(100) NOT
阅读全文
摘要:使用vim创建一个shell文件,命名 hello.sh 在linux中进行加载 chmod +x ./hello.sh #使脚本具有执行权限 ./hello.sh #执行脚本 方法2:以绝对路径的方式去执行bash shell脚本: 代码如下: /data/shell/hello.sh 方法3:在
阅读全文