![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
肥茹
这个作者很懒,什么都没留下…
展开
-
shell脚本导出sql文件到指定目录
shell脚本导出sql文件到指定目录原创 2023-02-07 14:18:33 · 477 阅读 · 0 评论 -
常用mysql语句
创建数据库CREATE TABLE `user` ( `id` INT ( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR ( 255 ) DEFAULT NULL COMMENT '姓名', `tel` VARCHAR ( 30 ) DEFAULT NULL COMMENT '手机号', `create_time` INT ( 11 ) DEFAULT NULL COMMENT '创建时间',PRIMARY KEY ( `id`原创 2022-02-17 10:13:44 · 334 阅读 · 0 评论 -
shell脚本 、swoole 导出所有数据库
shell,swoole,mysql原创 2022-02-08 18:33:58 · 1025 阅读 · 0 评论 -
shell 读取目录下的html文件
#!/bin/sh#读取a目录下的html文件for i in /a/*.html;do filename=${i##*/} #判断文件名是否含有foot if [[ ${filename} =~ "foot" ]] then #判断是否已经写入 666 include=`grep '666' $i` echo ${include} if [[ ! "$include" ]] then #往文件的最后一行写入666 sed -i '$a 666' ${i}.转载 2022-01-17 15:41:28 · 552 阅读 · 0 评论 -
shell 脚本连接mysql查询
#!/bin/sh#域名domain=$1SQL="select a.dir FROM new AS a INNER JOIN db_ad AS b ON a.domain = b.domain where a.domain='${domain}';"# echo ${SQL}MYSQL=`mysql -h localhost -u root-p123456 rds -e "${SQL}"`webDir=`echo ${MYSQL} | awk '{print $2}'`if [ ! -d .原创 2022-01-17 15:27:56 · 3235 阅读 · 0 评论