Randomly select one line from the output of the command "ls -p" (which lists the contents of the current directory) and replace any newline characters with semicolons.
shuf -n 1 <(sed -e "s/\n/;/g" <(cat $(ls -p | grep -v /)))