echo $(echo "$(ls -a | sort -R | head -n1)" | tr '[:upper:]' '[:lower:]')

echo $(echo "$(ls -a | sort -R | head -n1)" | tr '[:upper:]' '[:lower:]' | tr -s ' ')

echo $(echo "$(ls -a | sort -R | head -n1)" | tr '[:upper:]' '[:lower:]' | tr -s ' ' | tr -d '\n')

echo $(echo "$(ls -a | sort -R | head -n1)" | tr '[:upper:]' '[:lower:]' | tr -s ' ' | tr -d '\n' | sed 's/ //g')

echo $(echo "$(ls -a | sort -R | head -n1)" | tr '[:upper:]' '[:lower:]' | tr -s ' ' | tr -d '\n' | sed 's/ //g' | sed 's/[^a-zA-Z]//g')

echo $(echo "$(ls -a | sort -R |
echo $(echo "$(ls -a | sort -R | head -n1)" | tr -s '[:upper:]' '[:lower:]')