Search code examples
bashshellgreptail

grep all, a noop with grep


I have a command like so:

foobar &> my.log

and then I tail the log file with:

tail -F my.log | grep x

I tried using grep * to grep everything but that didn't work, how can I make grep a noop in certain cases? Perhaps it is grep '*' instead of grep *?

Using grep '*' didn't seem to work either, seems to only capture some stderr but not stdout?


Solution

  • You want something like this?

    grep ''