SyntaxFix
Write A Post
Hire A Developer
Questions
Yes, use mktemp.
It will create a temporary file inside a folder that is designed for storing temporary files, and it will guarantee you a unique name. It outputs the name of that file:
> mktemp /tmp/tmp.xx4mM3ePQY >