grep output is not in stdout or stderr
I'm trying to find files that contain 'ash' and 'bun' with the following bash command:
grep --line-buffered -ril ash | xargs -d '\n' grep -il bunOutput from the first grep only (the names of files containing 'ash') appears as expected on the terminal screen, but nothing is being printed to the pipe. I verified this with:
grep --line-buffered -ril ash &> junkjunk is empty.
I have GNOME Terminal 3.6.2, GNU grep 2.16 and Ubuntu 14.04. The output from grep is coloured.
I'm aware of grep's buffering quirks but the output appears on separate lines, so I assume it's being flushed.
Anybody?
4 Reset to default