0

I am trying to grep the folder that has lot of files using following ag command, and print results with out file name/path.

 ag --print-long-lines "test|temp" | grep -Ei  "error|fail"

But i still see the file names(sampledata1.txt, sampledata2.txt) in the following output

sampledata1.txt test:error 
sampledata2.txt temp:fail
Lava Sangeetham
  • 2,943
  • 4
  • 38
  • 54

1 Answers1

0
ag --nofilename "test|temp"
Lava Sangeetham
  • 2,943
  • 4
  • 38
  • 54