代码: 全选
find . -maxdepth 1 \( -iname "*.flac" -o -iname "*.ape" -o -iname "*.wav" -o -iname "*.mp3" \) -type f 2> /dev/null > play_list.m3u
代码: 全选
$ cat play_list.m3u
./13 - Save The Best For Last.flac
./12 - The Rose.flac
./11 - Everything I Do, I Do It For You.flac
./10 - When I Fall In Love.flac
./09 - The Way We Were.flac
./08 - Can You Read My Mind.flac
./07 - Unchained Melody.flac
./06 - Endless Love.flac
./05 - Can You Feel The Love Tonight .flac
./04 - Wind Beneath My Wings.flac
./03 - Evergreen.flac
./02 - Somewhere Out There.flac
./01 - My Heart Will Go On.flac
代码: 全选
$ ls -1 *.flac > play_list.m3u