| ls dirname | shuf -n 1 find dirname -type f | shuf -n 1 | 
파일들 중에 임의의 하나를 빼내는 명령어
[링크 : https://stackoverflow.com/questions/414164/how-can-i-select-random-files-from-a-directory-in-bash]
| play "`ls *mp3 | shuf -n 1`" | 
'Linux' 카테고리의 다른 글
| dsa distributed switch architecture (0) | 2020.12.11 | 
|---|---|
| linux command line에서 mp3 재생하기 (0) | 2020.12.08 | 
| pdsh (0) | 2020.12.04 | 
| bash $$ 변수, 배열, 반복 (0) | 2020.12.04 | 
| bash 배열 (0) | 2020.12.04 | 






