![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
zhaojike
这个作者很懒,什么都没留下…
展开
-
HDFS 下SHELL脚本监控表信息
SHELL脚本监控表信息,触发电话或者其他服务#!/bin/shsource /etc/profilesleep 10echo "v20180202"data_date=`date -d "$today" +%Y%m%d --date="-1 day"`function getPath(){sql_text="select s.LOCATIONfrom dbs dinner join tbls t on d.DB_ID = t.DB_IDinner join part..原创 2020-10-16 14:53:49 · 249 阅读 · 0 评论 -
awk工具小案例
1.基本的操作格式:awk '{pattern + action}' 或者 awk 'pattern {action}'2,基本语法:awk [ -F re] [parameter...] ['prog'] [-f progfile]3,显示文本文件myfile中第七行到第十五行中以字符%分隔的第一字段,第三字段和第七字段:awk -F % 'NR>=7,NR<原创 2017-04-04 22:18:09 · 258 阅读 · 0 评论 -
shell小案例
#!/bin/bashif [ -f /path/to/a.pid ];then num=$(cat /path/to/a.pid)kill -9 $numelseecho "have no pid,make sure app have running!"ficat tables|while read node do echo "no原创 2017-04-04 22:20:14 · 354 阅读 · 0 评论 -
搜索文件关键字find命令
搜索文件关键字find命令,举例说明:find ./ -name "*.jsp" -exec grep -l 操作员编号 {} \;find ./ -name "*.*" -exec grep -l run {} \;原创 2017-04-05 00:04:47 · 2837 阅读 · 1 评论