Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to write to a file in bash without reopening the file multiple times
exec 3> /tmp/foo
echo "1" >&3
echo "2" >&3
exec 3>&-
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.