I’m looking for a Julia implementation of a stream (inheriting from IO) that acts like /dev/null (but usable for any OS).
It would just ignore anything that is streamed to it (ie it should redirect file IO to nowhere). Does such a thing exist in the Julia standard library? Or do I have to roll my own?
help?> devnull
search: devnull
devnull
Used in a stream redirect to discard all data written to it. Essentially
equivalent to /dev/null on Unix or NUL on Windows. Usage:
run(pipeline(`cat test.txt`, devnull))