写linux的shell脚本方法积累
案例1
1 | #!/bin/bash |
案例二 写Flume进程的监控脚本
1 | #!/bin/bash |
1 | [root@bigdata04 myconfFile]# vim monlist.conf |
1 | [root@bigdata04 myconfFile]# vim startExample.sh |
3
1 | [root@bigdata04 sparkjars]# vi wordCountJob.sh |
1 | 想写成多行时,在上一行+空格+\ |
1 | #!/bin/bash |
1 | #!/bin/bash |
1 | [root@bigdata04 myconfFile]# vim monlist.conf |
1 | [root@bigdata04 myconfFile]# vim startExample.sh |
1 | [root@bigdata04 sparkjars]# vi wordCountJob.sh |
1 | 想写成多行时,在上一行+空格+\ |
本文标题:写linux的shell脚本方法积累
文章作者:TTYONG
发布时间:2022年02月18日 - 14:02
最后更新:2022年03月03日 - 16:03
原始链接:http://tianyong.fun/linux%E7%9A%84shell%E8%84%9A%E6%9C%AC%E6%96%B9%E6%B3%95%E7%A7%AF%E7%B4%AF.html
许可协议: 转载请保留原文链接及作者。
微信支付
支付宝