Shirlies
宁静专注认真的程序媛~
posts - 222,comments - 49,views - 71万

随笔分类 -  shell编程

记录shell编程学习过程以及相关笔记
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) 推荐(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) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

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