摘要: #!/bin/bash#################################################################每小时执行一次脚本(任务计划),当时间为0点或12点时,将目标目录下的所有文件内#容清空,但不删除文件,其他时间则只统计各个文件的大小,一个文件一行 阅读全文
posted @ 2021-04-13 16:47 daniel5 阅读(114) 评论(0) 推荐(0)
摘要: date +%Fdate +%F" "%H:%M:%Sdate -d yesterday +%F" "%H:%M:%S 2天前date -d -2day +%F" "%H:%M:%S 10天前date -d -10day +%F" "%H:%M:%S date -d tomorrow +%F" "% 阅读全文
posted @ 2021-04-12 16:14 daniel5 阅读(18) 评论(0) 推荐(0)
摘要: #!/bin/bash######################################检测两台服务器指定目录下的文件一致性######################################通过对比两台服务器上文件的md5值,达到检测一致性的目的dir=/data/webb_ip 阅读全文
posted @ 2021-04-09 10:44 daniel5 阅读(601) 评论(0) 推荐(0)
摘要: mv xiong.txt xiong1.txt 修改名称 awk '{print}' xiong.txt 把xiong.txt里每行内容都输出屏幕上 awk -f xiong1.awk xiong.txt 使用独立脚本文件向awk传输命令参数 awk -F ";" '{print "the 3th: 阅读全文
posted @ 2021-04-02 11:18 daniel5 阅读(68) 评论(0) 推荐(0)
摘要: I am in love with you She's scored again with her latest blockbuster 她的新作大获成功,再次引起轰动 How about going to a movie tonight?今晚看电影怎么样? The movie is a big h 阅读全文
posted @ 2021-03-31 15:02 daniel5 阅读(59) 评论(0) 推荐(0)
摘要: You only have one life.You only come around here once.Why wait?Why not start now?It doesn't matter how bad it is,it doesn't matter.One day,you will be 阅读全文
posted @ 2021-03-26 15:25 daniel5 阅读(82) 评论(0) 推荐(0)
摘要: 1、find: 查找文件类型,文件后缀名为.log 7日以后的文件 find -type f -name "*.log" -mtime -7|xargs ls -l ls -l $(find -type f -name "*.log" -mtime -7) find -type f -name "* 阅读全文
posted @ 2021-03-15 17:04 daniel5 阅读(567) 评论(0) 推荐(0)