From time to time I would like to verbatim redirect output normally shown in the julia REPL to a text file. In R I do this by
sink('txtfile.txt')
interestingfunctionwithoutputs()
sink()
Does something like this exist in julia? The use case in this case is piping out the output from UnicodePlots to a text file without manually copy pasting.