Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
random_file_name() {
local __return=$1
eval $__return="'$(date +"$(basename -- "$0")_%s_${RANDOM}_$$")'"
}
random_file_name FILE_NAME
echo $FILE_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment