Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #BASH select a random file from a folder
- MY_FOLDER="/tmp/myfolder/"
- myfile=$( find "$MY_FOLDER" -type f -print0 | shuf -z -n 1 )
- echo RANDOM FILE SELECTED
- echo "$myfile"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement