Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何提供多个字符串以忽略 grep 的 -v 标志?
例如,我想忽略文件名error_log 和baz 的结果?
find /home/foo/bar.com/ -mmin -12 | grep -v error_log baz
find /home/foo/bar.com/ -mmin -12 | grep -v 'error_log\|baz'