Rename of FileName using PERL

L

Laarni

Hi,

Anyone can help me on this query:

I need to rename all the files in the directory with this format:

Original FileName : txn.data
New File Name : txn.0000000001.data (where 0000000001 come from the
database table where column is seqquence number. The 0000000001 is
incrementing)


thanks for all the help in advance.


Regards,
Laarni
 
J

Jürgen Exner

Laarni said:
I need to rename all the files in the directory with this format:

Please see 'perldoc -f rename'
Original FileName : txn.data
New File Name : txn.0000000001.data (where 0000000001 come from the
database table where column is seqquence number. The 0000000001 is
incrementing)

Where is the problem?

jue
 
B

Ben Morrow

Quoth Laarni said:
I need to rename all the files in the directory with this format:

perldoc -f rename
perldoc -f opendir
perldoc -f readdir
Original FileName : txn.data
New File Name : txn.0000000001.data (where 0000000001 come from the
database table where column is seqquence number. The 0000000001 is
incrementing)

perldoc DBI

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top