making a script

Serg B. sergicles at gmail.com
Wed Jul 12 06:44:46 UTC 2006


Firstly, wma files can be played in Linux - refer VLC (apt-cache...).

# WARNING: not tested

cp -r ORIGINAL_MUSIC_DIR NEW_MUSIC_DIR.mp3
mv ORIGINAL_MUSIC_DIR NEW_MUSIC_DIR.wma
find ./NEW_MUSIC_DIR.wma -name '*.mp3' -exec rm {} \;
find ./NEW_MUSIC_DIR.mp3 -name '*.wma' -exec rm {} \;
### DONE

   Serg

On 12/07/06, Chris Lemire <linux.user400354 at gmail.com> wrote:
> How can I make a bash script to seperate my mp3 music from my wma music? My
> wma music cannot be played in Linux. I would like to move all of the
> directories with wma music to another directory. Then when I use Amarok, I
> can tell it not to add the wma music to the collection. The bash script
> should have find or slocate. Using those will find all of the wma music
> files.
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
>




More information about the ubuntu-users mailing list