I would like the output of cat to print the contents of the file poo.txt and then redirect it as stdin to echo. The contents poo.txtis the number 42. i.e.
echo "I eat " < cat poo.txt
should return
I eat 42
Instead the shell returns
-bash: cat: No such file or directory
How would I do this?