【用shell脚本创建sqlite表并添加sql语句--通用】教程文章相关的互联网学习教程文章

用shell脚本创建sqlite表并添加sql语句--通用

重要使用的是EOF的功能,亲测和!功能一致;下面是测试代码 #!/bin/bash val=`ls`for v in ${val} do   if [ ${v} == "test.db" ]   then   rm test.db   echo "rm test.db"   fidone sqlite test.db << EOFcreate table test(name char,sex char);insert into test values("yang","nan");select * from test;.quitEOF EOF注入内容EOF结束用shell脚本创建sqlite表并添加sql语句--通用标签:通用...