Hi all - first post here. I had no idea where to put this, so I figured I'd start here. If this should be elsewhere, an mod should feel free to move it.
Looking for a way to batch rename files in a folder, where only a specified set of characters get changed. I can't do this through Windows (select all files > rename) b/c some of the characters get changed whereas I do not want them to, and all files are appended with (1) (2) etc., which I do not want either.
Most any scripting language will do that. For Windows, you can use Powershell, or even plain old DOS commands. Search for a known pattern and replace text is a simple operation.
for i in snare-dry-*.wav; do mv $i `echo $i | sed 's/dry/wet/'`; done
Best Regards,
BioPhysEngr http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
Thanks for that. Maybe it will help someone else tho; I am far from a Linux person.
Hey Bio - you are a mod. I wanted to contact the forum (admin/mod - doesn't matter) about posting something. I see no option for me to pm anyone, and the contact info - webmaster@codeguru.com - is not working. I sent an email on the main site (not the forum) a few days ago, but have not received a response. What's the best way to get in touch?
BioPhysEngr http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
That PM link works for me. Don't you see a Send Private Message link?
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
Hi - that link I posted is not a PM link. It's an email link - that's what doesn't work.
No, I do not see a Send Private Message link. In fact, if I do a ctrl+f for either Private or Message, I get zero results for both. Maybe b/c I am new?
Anyway, I was hoping to get some help in decomiling a file, and wasn't sure which was the best/proper subforum to post.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
Ok maybe I misunderstood what decompile was. Anyway, you don't have to PM Brad about what forum to use, read the forum descriptions and do your best pick. If it's the wrong forum a mod can always move the thread.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
vBulletin Message
riffwraith, you do not have permission to access this page. This could be due to one of several reasons:
1.Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2.If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
As to PMs -- you have to have a certain number of posts and such before PMs are enabled in an account. This is an anti-spamming feature. A number of spammers will get on the forum and start PMing people. By forcing posts and such before allowing PMs, we eliminate that. Additionally, the forums are primarily for public communication rather than private messaging.
Hopefully the spam filters won't eat any messages you send me
Brad!
-----------------------------------------------
Brad! Jones, CodeGuru.com Site Director
Developer.com Network Director / EiC
Bookmarks