http://qs321.pair.com?node_id=506481


in reply to Mass file renaming

Maybe slightly off-topic, but I assume you use a MS Windows environment. Wasn't (isn't) a DOS shell capable of doing something like this?

C:\Storage> rename *.csv *.txt

Perl is awesome, but sometimes a little shell command could be easier.

Then again, you seem to "extract some data from the file", and I bet Perl comes in handy there ;-)

--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
Re^2: Mass file renaming
by interstellar (Initiate) on Nov 08, 2005 at 08:55 UTC
    I'm light on Perl, but almost ethereal when it comes to DOS Scripting.

    It seems the file was not closed afterall, my simple sintax (simptax?) was wrong. Swampyankee you were right on there early on, but thanks to all for your contributions. Works a treat now!

    Worship, worship...