Random m3u help


looking think should achievable script.

looking script search subfolders specific files types (mp3, mp4, m4a) , select 1 random file each subfolder, write m3u.

following creates m3u per subfolder isn't after:

find . -name ‘*.mp3’ -execdir bash -c ‘file=”{}”; printf “%s\n” “${file##*/}” >> “${pwd##*/}.m3u”‘ \;

assistance appreciated :)
 

how differ want?

also, why subjecting (or else) horrors bash?
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Sean Penn, "Chapo Guzman", and Rolling Stone

Subler - What is "Fix Audio Fallbacks"?

Help please Strange logs