-
由于CICS每周都需要巡检,而客户应用里有太多问题,每周生成的core fmt有时就多大几十甚至几百个。每次都要ls -ltr 按照时间排序,然后傻乎乎的一个一个vi着看,看多了就晕了,哪个看了,哪个没看全搞乱了。找个好方法,当然用find命令了,虽然find我知道很久了,但是就是懒得用,就像知道cd /dir1/dir2可以,却还是每次cd /dir1.....ls(晕倒)....cd dir2 (无语)。
ok! find的具体用法参考网上暴多,咱的要求就是查找所有当前目录下本周的*.fmt文件。find有个参数-mtime n 查找n天(实际上是n*24小时前)以前文件内容被修改过的所有文件。但是他只是n天那一天(实际上是n*24小时到(n-1)*24小时)的,不是整个礼拜,笨点的方法就是加上or的参数 "-o" :
f... -
2007-07-20
Learning the bash shell - [Learning the bash Shell]
[本日志已设置加密] -
2007-07-20
Chapter 2. 命令行编辑模式 - [Learning the bash Shell]
[本日志已设置加密] -
2007-07-20
1.10. Help - [Learning the bash Shell]
[本日志已设置加密] -
2007-07-20
1.9. 特殊字符和引用 - [Learning the bash Shell]
[本日志已设置加密] -
2007-07-20
1.8. 后台任务 - [Learning the bash Shell]
[本日志已设置加密] -
2007-07-20
1.7. 输入和输出 - [Learning the bash Shell]
[本日志已设置加密] -
2007-07-20
1.6. 文件 - [Learning the bash Shell]
[本日志已设置加密]







