perl rename

Hi - I want to rename the file in the below manner how do i do that.

05052014Name_Test_file2.txt

rename to

Name_Test_file2.txt

so i just want to remove the date from the file name.

Thanks
shragiAsked:
Who is Participating?
 
ozoCommented:
perl -e 'rename $_,s/^\d+//r || die $! for<*Name_Test_file2.txt>'
0
 
shragiAuthor Commented:
thanks ozo
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.