Print the name of a randomly selected file from the current directory, excluding files ending with "tmp" or "sh".

printf "%s\n" $(ls $(ls | egrep -v "tmp|sh$") | sort -R | head -n1)
printf "%s\n" $( ls $(ls | egrep -v "tmp|sh$") | sort -R | head -n1 )