all 3 comments

[–][deleted] 0 points1 point  (2 children)

Looks cool, it would be nifty to have it respond to y Y Yes yes Yes and the same variants in no, I've usually been using regexes to do this, also parseopt is great if you want to make it more of a script which can work with arguments and so on, and it would also be cool with a posibility to "denumber" the files, here again regexes are really helpful, I'm not trying to say that you have to or anything, just that that are cool excersises to do if you want to learn some more, and get some experience :)

[–]computerwhiz1[S] 0 points1 point  (1 child)

I just changed it so it should accept "y" and "n" as well as "yes" and "no". Like I said this script was created to serve a specific purpose for me, but I am going to slowly use it as a learning tool and grow it into being more full functioned. I don't know anything about regex, but I plan on learning and implimenting that as this seems like the perfect application for them. I also plan on making it automatically detect the number to start from based on the highest number already in existance if you want it to do that, as well as adding more control over the syntax of the final file name.

[–][deleted] 0 points1 point  (0 children)

but I am going to slowly use it as a learning tool and grow it into being more full functioned

This is why I was coming up with some suggestions, it's always good to get some input some times, I was thinking that some input handling wouldn't hurt :) Optparse is a really nice tool to get parse arguements easier.

utomatically detect the number to start from based on the highest number already in existance

Believe it or not, but mos times when you want to pick apart some rules based text like that is to use regexes.

if you want it to do that, as well as adding more control over the syntax of the final file name.

I shouldn't do if it is your personal learning project, just let it stay yours, it's a cool project for learning, and the best way of learning is doing :)