Chinaunix首页 | 论坛 | 博客
  • 博客访问: 420983
  • 博文数量: 86
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 822
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-25 10:36
文章分类

全部博文(86)

文章存档

2022年(1)

2021年(3)

2020年(1)

2019年(9)

2018年(24)

2017年(20)

2016年(20)

2015年(8)

我的朋友

发布时间:2017-08-24 20:21:21

要删除系统中就的备份文件,就需要使用命令了:    #find /tmp -mtime +30 -type f -name *.sh[ab] -exec rm -f {} \;    假如在一个目录中保留最近30天的文件,30天前的文件自动删除    #find /tmp -mtime +30 -type f -name *.sh[ab] -exec .........【阅读全文】

阅读(1244) | 评论(1) | 转发(0)

发布时间:2016-10-31 10:47:41

find ./ -type l -exec rm -f {} \;Find can execute arguments with the -exec option for each match it finds. It is a recommended mechanism because you can handle paths with spaces/newlines and other characters in them correctly. You will have to delete the contents of the directory before you can re.........【阅读全文】

阅读(935) | 评论(0) | 转发(0)

发布时间:2016-01-25 23:46:00

grep 这个名字,来源于一个 Unix/Linux 中的古老的行编辑器 ed 中执行相似操作的命令:g/re/p grep 命令的语法语法如下所示:grep 'word' 文件名grep 'word' 文件1 文件2 文件3grep '字符串1 字符串2' 文件名cat 某个文件 | grep '某个东西'command | grep '某个东西'command 选项1 | grep '.........【阅读全文】

阅读(953) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册