Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

harleytat

macrumors newbie
Original poster
Jul 22, 2002
23
4
I'm using A Better Finder Rename to rename a bunch of files in this format: SampleFileName

I'd like them to look like this: sample file name

I've gotten this far in my grep adventures, which selects the first (capitalized) word: ([AB][a-z]*) but I can't figure out how to define the subsequent words.

first one with the answer gets good karma!

thanks a lot
H
 
Sorry, not a complete answer, but...

echo "SampleFileName" | sed 's,\([A-Z]\)\([a-z]*\)\([A-Z]\)\([a-z]*\)\([A-Z]\)\([a-z]*\),\1\2 \3\4 \5\6,1'| tr 'A-Z' 'a-z'
sample file name
 
Not an answer to your question..

But I found that ABFR sucked. It didn't do what it advertised at all and the developers didn't do jack to help me try and correct it (I was trying to do something fairly simple afterall).

Ultimately, I settled on Filenamer.
 
genius

broken keyboard...pure genius. you saved me mucho time. just tried it on a small batch and it worked flawlessly...now gonna toss it at the 1200 other files.

thanks all else for the software recs. am downloading and checking them out as we speak.

H
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.