#!/usr/bin/env python # musicmove.py # save to any folder as musicmove.py and chmod +x musicmove.yp # edit musiclist and destination below # then run it ./musicmove.py import os musiclist='/path/to/musiclocations.txt' #EDIT: change this to the location of your musiclocations.txt file destination='/path/to/new/music/location/' #EDIT: change this to the destination folder for your music f=open(musiclist) for line in f: line=line[:-1] os.system('mv '+line+' '+destination)