TIL about Bash exec
#!/bin/bash | |
exec >> logfile | |
echo foo | |
echo bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#!/bin/bash | |
exec >> logfile | |
echo foo | |
echo bar |