摘要:
#!/bin/bash bash_path=$(cd "$(dirname "$0")";pwd) source $bash_path/base.config echo "该脚本将会把" $serverA "机器上的" $document "目录同步到" $serverB "机器上"; read - 阅读全文
摘要:
#!/bin/bash fileName=$1 now=`date +%Y%m%d%H%M` read -p "Are you sure delete the file or directory $1? yes|no: " input if [ $input == "yes" ] || [ $inp 阅读全文
摘要:
#!/bin/bash #输入不同字符完成不同巡检内容 #打印提示符 HINT(){ read -p "请按回车继续:" } #查看CPU信息 CPU_INFO(){ echo echo -e "\033[4;31mPrint the CPU info:\033[0m" cat /proc/cpui 阅读全文
摘要:
#!/bin/bash #显示菜单(单选) display_menu(){ local soft=$1 local prompt="which ${soft} you'd select: " eval local arr=(\${${soft}_arr[@]}) while true do echo 阅读全文
摘要:
#!/bin/bash echo -e "\033[31m 这个是定时删除文件,获取更多工具及脚本请关注公众号: 波哥的IT人生 Please continue to enter or ctrl+C to cancel \033[0m" riqi=`date +%Y%m%d` #收件箱 EMAIL_ 阅读全文