Created
June 20, 2018 15:54
-
-
Save echu/e392a46f0c67e9ad1a301724137c61c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # useful bits to remove temp files in shell scripts | |
| FILE=$(mktemp) | |
| function remove_temp_output { | |
| rm $FILE | |
| } | |
| trap remove_temp_output EXIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment