in reply to Re: renaming files
in thread renaming files

Hmmm ... surely you don't actually want to 'die' in the middle of a for loop just because one of your files already happens to have the new extension?

i.e., if I had apple.TMB and apple.JPG then none of banana.TMB, pear.TMB or wombat.TMB would get renamed...

Tony

Replies are listed 'Best First'.
Re: Re: Re: renaming files
by fundflow (Chaplain) on Jan 04, 2001 at 20:09 UTC
    1. As the (updated) song sais: "This is my script and i'll die if i want to" :)

    2. There wouldn't be a problem with your example as apple.tmp goes to applet.jpg

    Anyway, just as you noticed it, I'm sure that Anonymous Monk that posted the original question will be able to adopt the script to his needs. He didn't specify what to do in such cases so better be safe than sorry.