I have a simple bash script:
#!/bin/bash
Some bash code....
And when starting it with:
./myscript.sh
I would like to redirect the error into error.err file, and I would like to specify the name of this file (here: error.err) inside myscript.sh file.
(so I would like to avoid doing: ./myscript.sh 2>error.err
)
Is it possible
Thanks a lot