Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Linux 中创建一个 shell 脚本,执行该脚本时会在目录中搜索所有媒体文件,然后创建一个播放列表并使用 MPlayer 播放它。
使用此命令:
find /PATH/TO/MUSIC/DIRECTORY/ -type f -iname "*.mp3" > playlist.m3u
现在玩 mplayer :
mplayer -playlist playlist.m3u