10 2022 档案
摘要:sed -i 's/^M//g' a.csv 注意:这里的“^M”要使用“CTRL-V CTRL-M”生成,而不是直接键入“^M”。 实验: [root@localhost tmp]# cat -A a.csv 1^M$ 2^M$ [root@localhost tmp]# sed -i 's/^M
阅读全文
摘要:需求:通过网站url方式直接执行服务器的shell命令 实现: 1、安装依赖 pip3 install falsk 2、python脚本 [root@localhost tmp]# more falsh-index.py from flask import Flask,render_template
阅读全文
摘要:1、该shell判断 第一次失败告警,接口恢复发送一次通知 参数:一个参数接口返回结果0 表示成功 1表示失败 脚本详情 [root@localhost bd]# more bd-new.sh #!/bin/bash w=$(cd $(dirname $0);pwd) befo=$(cat $w/b
阅读全文