making a script
Chris Neary
hello at poetofcode.org
Wed Jul 12 06:51:24 UTC 2006
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.
Try this:
Make the directory 'wma' in your home folder and then run this.
#!/bin/bash
for file in `locate .wma`; do mv "$file" ~/wma; done
I've tested this with an 'echo "$file" rather than the move operation,
and get newlines on some space characters, but try it. See if it
works. I hope it does. :-)
Good luck!
Chris
More information about the ubuntu-users
mailing list