Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    I feel that this is grep's output. There are better solutions with just grep. Commented Apr 19, 2016 at 14:08
  • I cannot answer if I'm not sure. Is this grep output or not? Commented Apr 19, 2016 at 14:45
  • @Braiam Yes, it is. Particularly find . -name "*.tex" -exec grep -i -H "agent" {} \; . Commented Apr 19, 2016 at 14:46
  • @don_crissti Can you get it work with the find command? Please, provide your output. My output in unsuccessful and many lines of ggrep: agent: No such file or directory. Commented Apr 20, 2016 at 11:17
  • @don_crissti Your command leaves filenames outside and includes filecontents. Expected output is filename without colon. Commented Apr 20, 2016 at 16:38