There is a command pdflatex, which I want to use in my bash script. It takes as input a filename on which content it will work.
Now I have an algorithms that looks as follows:
for stuff in list of stuff; do
echo "${stuff}" > /tmp/tmpStuff
pdflatex /tmp/tmpStuff
done
Now this works as expected. But I was thinking I could speed that up by doing less disk I/O(as > redirection writes to a file). I wish I could write something like echo "$stuff" | pdflatex /tmp/tmpStuff
but pdflatex uses a file and not stdin as its input. Is there any way of keeping "$stuff"
in memory and passing it to pdflatex as a sort of file?
TLDR: I would be happy if I could create a temporary file which could be named and be in memory.