shell脚本循环执行mysql语句
摘要:参考资料:Shell脚本中执行mysql语句需求:数据库里有张数据表存储的是用户对电影的评价(user_id movie_id rating time),但是我现在要每部电影的总评分。解决方法:1)、写个sql文件test.sql:use movie_recommendation;select di...
阅读全文
posted @
2015-06-08 19:50
Shirlies
阅读(7834)
推荐(0) 编辑
shell学习笔记(1):利用IFS打印用户和默认shell
摘要:参考资料为:linux shell脚本攻略 作者sarath Lakshman 人民邮电出版社shell:读取文件的每一行内容并输出 的写法1目的:读取passwd文件,获得用户名和其默认的shell,并打印出来首先cp /etc/passwd ./passwd_cpshell脚本get_usr_...
阅读全文
posted @
2014-12-17 11:00
Shirlies
阅读(566)
推荐(0) 编辑