I don't know if it's possible,
I would like start a bash script without pipe which write everything to a file and at the same time see the output on the terminal.
So I know how to do that with this command :
ls -l |& tee test.log
How can I create this file directly from a line in my script and not using a pipe ?
ls
? If so then you can modify the script. – ctrl-alt-delor Jun 24 '19 at 15:15