Suppose I do a grep
that gives me a lot of results. I want to use the output of grep and pass it to a command that takes a filename as it's first argument. For example -
myCommand filename.txt
I would like to do something like this -
grep "xyz" | myCommand
However, since myCommand doesn't read from stdin, this piping does not work. I don't want to create a temporary file on disk with the results of grep. Is it possible by any other means to create a "file", say in memory and let myCommand
use that?