Results 1 to 3 of 3

Thread: Trying to write a script

  1. #1
    Join Date
    Dec 2008
    Beans
    12

    Trying to write a script

    I am trying to develop a bash procedure called sortMP3Files() that "sorts" and moves MP3 files located in the source directory SOURCE given as the first argument into the destination directory DEST given as the second argument.

    I want to create a subdirectory in DEST for each new album name seen among the MP3 files of SOURCE.
    I want to move an MP3 file with an album tag of AlbumX of SOURCE into DEST/AlbumX directory unless a file with that name already exists. If so, I want the MP3 file to remain in SOURCE.
    Also, I want to rename the MP3 files of album directories of DEST so that they are now of the form nn-Album-Artist.mp3. If an MP3 file has no track number tag, I want to to give it a default tag number.

    Your help would be appreciated!
    Last edited by BufordPants; August 4th, 2009 at 04:27 AM.

  2. #2
    Join Date
    Dec 2008
    Location
    Kennewick, Washington
    Beans
    168
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Trying to write a script

    Have you at least given it a try yet?
    Avoid the Gates of Hell. Use Linux.

  3. #3
    Join Date
    Dec 2008
    Beans
    12

    Re: Trying to write a script

    Yeah, I figured it out!

Bookmarks

Posting Permissions

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