如何使用shell脚本创建MPlayer播放列表?

Rou*_*bin 4 linux mplayer

我正在尝试在Linux中创建一个shell脚本,在执行时会在目录中搜索所有媒体文件,然后创建一个播放列表并与MPlayer一起播放.

mah*_*454 11

使用此命令:

find /PATH/TO/MUSIC/DIRECTORY/ -type f -iname "*.mp3" > playlist.m3u
Run Code Online (Sandbox Code Playgroud)

现在玩mplayer:

mplayer -playlist playlist.m3u
Run Code Online (Sandbox Code Playgroud)