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.
All members have the option to disable PM-ing them, but that would affect any registered user (AFAIK guests don't have access to the profile pages at all anyway, and I suppose the PM link in the post header menu not to be available to them either). Mostly a guess, since I never have seen such a scenario before, but perhaps there's a PM restriction for registered members as well, as long as they have a zero post count. You already have made a few posts, but apparently they've all been in the General Discussion / Chit Chat section, and posts made here don't count towards the recorded total posts count. [EDIT: Brad's post #14 seems to support my supposition.]
So maybe making just a single (approved) post in one of the "real" forum sections may resolve your PM problem. The Windows OS Issues section may be a suitable candidate for your question.
Last edited by Eri523; December 20th, 2012 at 08:38 PM.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Bookmarks