#!/bin/bash # Script para ejecutar un slideshow con eom # de una carpeta al azar dentro de un directorio FOLDER=/home/sergio/zx/scr_packs array=("${FOLDER}"/*/) #for dir in "${array[@]}"; do echo "$dir"; done NUM=$(( RANDOM % ${#array[@]})) #echo "${array[$NUM]}" eom -f -s "${array[$NUM]}"