摘要: 这篇主要讲grep(1) search for the given string in a single filegrep "literal_string" filename(2) checking for the given string in multiple filesgrep "string" FILE_PATTERN(3) Case insensitive search using grep -igrep -i "string" FILE(4) Match regular expression in filesgrep &q 阅读全文
posted @ 2012-06-09 22:12 cuero 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 这篇主要讲find(1)使用name选项find . -name "[A-Z]*" -print在当前目录及子目录中查找以大写字母开头的文件(2)使用perm选项(按权限查找)find . -perm 755 -print在当前目录下查找文件权限位为755的文件。如果在755前加'-',那就表示755所提到的权限都有即可如果在755前加'+',表示755提到的权限只有有1个有就可以了(3) 忽略某个文件find /apps -name "/apps/bin" -prune -o -name "*file" 阅读全文
posted @ 2012-06-09 12:00 cuero 阅读(214) 评论(0) 推荐(0) 编辑