Hi,
I have a script which works fine that does something like:
Code:
#!/bin/bash
function func () {
echo "glop"
}
echo "blah"
echo "blih"
...
Now I want all the echos (moreover, all the stdout) to go to a file.
Which line do I have to add at the beginning of my script?
I don't want to modify all the script and don't want the script to be called by another script.
I thought about something like
but I think it does not work properly
Thanks