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.
我正在尝试使用以下ag 命令grep 包含大量文件的文件夹,并打印不带文件名/路径的结果。
ag --print-long-lines "test|temp" | grep -Ei "error|fail"
但我仍然在以下输出中看到文件名(sampledata1.txt,sampledata2.txt)
sampledata1.txt test:error sampledata2.txt temp:fail
ag --nofilename "test|temp"