I have files named t1.txt, t2.txt, t3.txt ... t4.txt and I need a shell script to rename it like this:
file one: M.m.1.1.1.201108290000.ready
file two: M.m.1.1.1.201108290001.ready
etc, the sequence number in the last 4 digits changes.
I'd be grateful if someone helped me :)
Best Regards
ls -1do echo $file prefix=M.m.1.1.1. file_name=M.m.1.1.1.$seq.ready echo $file_name seq=seq+1mv $file $file_name done