If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Shell Script Help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-04, 06:30
sawdustdog sawdustdog is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
Shell Script Help

Hi!!

I'm not a computer programer but over the years I have learned html, javascript, css, dhtml, vbscript, and flash actionscript.

I'm unfamilar with shell scripts. I was surfing the web looking for an application that would search my hd for mp3's and created an m3u file for each folder that has mp3's and save the m3u elsewhere on hd.

During my search I stumbled onto an archived thread:

http://dbforums.com/arch/144/2002/12/614173

and this is exactly what i'm looking to do.

However, I'm not sure how i would make a shell extension file or how i would even start it up to do the task i want to do. I don't even know if it will work on a Windows XP home OS. If so will it work on other Windows OS??

Can any one advise me on how i would make this work???

It's my uderstanding the script that accomplishes the task is the following and is posted in the last thread entry.

find /mnt/music -type d |
while IFS= read -r dir
do
m3u_name=${dir##*/}.m3u
ls "$dir"/*.mp3 > /home/playlists/"$m3u_name"
done


Thanks!!!!

PS. I have 2 HD's and 3 volumes so I guess I'm wondering if this script will work on all 3.

Thanks Again!!!
Reply With Quote
  #2 (permalink)  
Old 02-01-04, 12:25
chillies chillies is offline
Registered User
 
Join Date: Jul 2003
Location: Edinburgh
Posts: 35
If you want to go down the route of unix-style scripting on Windows you'll have to install appropriate tools. I personally use Cygwin bash http://www.cygwin.com/ on Windows 98, though I've heard Microsoft are providing Windows services for Unix http://www.microsoft.com/windows/sfu/default.asp that will work on Win2k and up.

HTH
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On