随笔分类 -  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 阅读全文
posted @ 2020-02-27 19:27 AAA五金批发王建军 阅读(475) 评论(0) 推荐(0) 编辑
摘要:使用vim创建一个shell文件,命名 hello.sh 在linux中进行加载 chmod +x ./hello.sh #使脚本具有执行权限 ./hello.sh #执行脚本 方法2:以绝对路径的方式去执行bash shell脚本: 代码如下: /data/shell/hello.sh 方法3:在 阅读全文
posted @ 2018-07-04 11:08 AAA五金批发王建军 阅读(705) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示