Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Help with a school project, please

    Ok, so lets get down to it. I have this project for school where I have to write a simple script can do the following:

    Query for Songs
    Add Entries
    Delete Entries
    Display All
    Create a Playlist
    Delete Playlist

    I'm having a really tough time and were not getting much help here in class.

    This is what I got so far:

    echo "MP3 Program Menu:
    A)Query for Songs
    B)Add Entries
    C)Delete Entries
    D)Display All
    E)Create a Playlist
    F)Delete Playlist
    echo -e "Enter your selection --> \c"
    I know I have to make in a database. but I'm really lost. Any help would be appreciated.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    You won't get much help for school projects here - in general it is contrary to the terms-of-service for this site. However, I think that some general pointers are not out of order. So, use the file system (user directories and files) for your database. It's simple and can be scripted pretty easily. Ie, check for and create a ~/Music/Playlists directory if necessary, and use that to store playlists, which in turn can be simple text (xml is good) files.

    You can also create if necessary the directory ~/Music/Contents directory, and store the raw mp3's there.

    Your biggest issue is what information you want in your playlists. Also, you probably want to create an "All Songs" playlist that keeps track of all the songs in ~/Music/Contents.

    That's about as much help as I can in good conscience provide you. Good luck.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts