mysql可以在命令行模式下执行shell命令 mysql> help For information about MySQL products and services, visit: http://www.mysql.com/For developer information, including the MySQL Reference Manual, visit: http://dev.mysql.com/To buy MySQL Enterprise support, training,…
需求描述: 最近在写一个脚本的时候,要判断一个文件是否存在,有怎么样,没有就创建,这个时候 看到了一个test 结合 || 或者 &&的写法,就查看了下资料记录下是怎么个玩法. 操作过程: 1.判断一个脚本是否存在,如果存在就提示文件存在 [mysql@testvm01 baks]$ ls -l total -rw-rw-r--. mysql mysql Jan : innobin.log [mysql@testvm01 baks]$ test -e innobin.log &&a…