Batch Renaming in Shell

I have a full list of files like,

    1066_Hasoffers.apk.apk.txt        
    161_Genesys.apk.apk.txt        
    231_Attendance.apk.apk.txt  
    2956_BookingBug.apk.apk.txt  
    3394_sumall.apk.apk.txt   
    4306_Vocus.apk.apk.txt     
    .....

And I would like a one-liner to rename them to (say).

       1066_Hasoffers.txt        
        161_Genesys.txt        
        231_Attendance.txt  
        2956_BookingBug.txt  
        3394_sumall.txt   
        4306_Vocus.txt     
        ....

How can i get this done ?


Source: bash

Leave a Reply