Sponsored By

Sign in to follow this  

Simple Is Good

Recommended Posts

this below is probably my simplest yet most useful thing I have written. The cool part is, since it is python it runs also on windows. It is a script that searches through a directory and renames files, but takses out extra info that is not needed. for example:

[email protected] ~ $ ls sopranos

you can have it remove ".jo44.ShareReactor" from each title. Or with a music cd of mine that looks like this

Metallica - 2 X 4.mp3
Metallica - Ain't My Bitch.mp3
Metallica - Bleeding Me.mp3
Metallica - Cure.mp3
Metallica - Hero of the Day.mp3
Metallica - King Nothing.mp3
Metallica - Mama Said.mp3
Metallica - Poor Twisted Me.mp3
Metallica - Ronnie.mp3
Metallica - The House Jack Built.mp3
Metallica - The Outlaw Torn.mp3
Metallica - Thorn Within.mp3
Metallica - Until It Sleeps.mp3
Metallica - Wasting My Hate.mp3

it will clean it up to this

[email protected] ~/Load $ ls
2 X 4.mp3
Ain't My Bitch.mp3
Bleeding Me.mp3
Hero of the Day.mp3
King Nothing.mp3
Mama Said.mp3
Poor Twisted Me.mp3
The House Jack Built.mp3
The Outlaw Torn.mp3
Thorn Within.mp3

to use it on winows you just need to drag the script to the directory you want to clean up, and click on it. It will ask you what phrase you want removed.

It also will show you the changes that will be made before making them. It gives you a chance to quit if everything does not look correct

here is the script


Share this post

Link to post
Share on other sites

I plan on leaving it up for a while.

as to tutorials. got my start with a book, this one was really desighned for the beginner in mind


as to online tutorials, I can only think of this one off hand. their are probably better ones out there.


edit added later//

this free online book looks promising


Edited by shanenin

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this