我一直在尝试解决这个命令的语法:
grep ! error_log | find /home/foo/public_html/ -mmin -60或者:
grep '[^error_log]' | find /home/baumerf/public_html/ -mmin -60我需要查看已修改的所有文件,但名为error_log的文件除外。
I've read about it here,但只找到一种not-regex模式。
发布于 2010-08-23 22:25:41
grep -v是你的朋友:
grep --help | grep invert -v,--反转-匹配选择不匹配的行
还可以查看相关的-L (-l的补充)。
不匹配的文件,--
- -L -
仅打印不包含匹配文件名的文件
https://stackoverflow.com/questions/3548453
复制相似问题