[thelist] search and replace on filenames

Daniel J. Cody dcody at oracular.com
Tue Apr 4 16:37:05 2000


Peter - 

I was thinking I could help ya out till ya mentioned windows. Sed(the
stream editor) is a common tool on all unix platforms that could do
something exactly like you want(and a whole lot more!).

After some poking around, i've found a site which has a number of sed
tools for win32 and DOS. It also has some links to other batch editing
programs.

http://www.cornerstonemag.com/sed/

Spend about a half hour reading how to do what you want to do, doesn't
sound to tough. If you need help, just shout ;)

.djc.

Peter Van Dijck wrote:
> 
> Hi all,
> back on the list, have a job now and need to do this:
> a search and replace on about 200 filenames (in Windows). I need to keep
> the last 5 letters of the name and the extension. (Yes, transferring to an
> old mac laptop).
> 
> Are there any tools that can do that?
> Thanks for your help, I'd need it by tomorrow morning. If not, I'll ust
> have to go tru by hand.
> 
> Also, on the old mac system i need to do the same. Any tools? (I don't know
> ANY mac, so if there is an easy way, please talk me tru it...)
> Thanks as always,
> Peter