Skip to content

Instantly share code, notes, and snippets.

@unfo unfo/output
Created Sep 29, 2014

Embed
What would you like to do?
TIL about Bash exec
rlyeh:work jw$ bash testredir.sh
rlyeh:work jw$ cat logfile
foo
bar
#!/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
You can’t perform that action at this time.