![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
VoiceRoom
这个作者很懒,什么都没留下…
展开
-
linux巡检脚本
适用操作系统: Redhat 6、7 Centos 6、7 适用场景 检查操作系统的基本健康状况和负载 使用方式服务器可访问外网可执行curlwww.baidu.com 看是否可以返回百度一下的结果root用户登录需要检查健康状态的服务器[root@puppetagent ~]# iduid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:un...原创 2020-09-29 15:52:42 · 269 阅读 · 0 评论 -
Sed(Stream EDitor)替换字符串
sed -i 's/original/new/g'详细说明:sed= Stream EDitor(Stream编辑) -i= in-place (i.e. save back to the original file)(回写源被替换文件) The command string: s= the substitute command(替换命令) original= a regular expression describing the word to replace (...翻译 2020-08-13 11:16:12 · 328 阅读 · 0 评论 -
AWK中BEGIN和END的使用理解
awk中begin和end的使用awk使用语法awk 'script' filenamesawk使用语法中的script又由多个pattern+action组成单个/pattern/ { actions }应用不通的pattern可以实现不同的功能,经常使用的pattern如正则表达式、BEGIN、END等。多个组成的脚本如下awk ' BEGIN { actions } /pattern/ { actions } /pattern/ { actions ...原创 2020-06-02 16:32:37 · 2978 阅读 · 0 评论