Need a Bash script

Looking for volunteers to join your project? Need help with a script but can't afford to pay? Want to offer your services as a volunteer to build up your portfolio? This is the place for you...

Moderator: General Moderators

Post Reply
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Need a Bash script

Post by Benjamin »

Anyone want to have a go at writing a bash script that will do the following?

1. Iterate the cwd and all subfolders searching for audio files
2. Put them in random order
3. Play them all using mplayer or xine

I'd do it myself but have no clue.

Thanks!
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Need a Bash script

Post by Christopher »

Take a look at the find command. You can search directories and find files with specific extensions. The you can run a program for each one, or concat them to a temp file and then play them.
(#10850)
Post Reply