I am not sure but this may help you lets suppose you have 3 long file name in the directory
1. tr
ryskshsjdbfhsbhjbshjbgsjhbjshbgjhbsjgsgb.ext
2. trs
tyxbvjhbxkjvxjhbxhjbjxhbjxhjhbxvjhbjxhbjsgbsjhgbjshbgj.ext2
3. try
sjhbjhsbgjhbsghjbsjbgjsbgjhbsjghbjsgjsjhbhjbsfhjbghjbsghjbgjshgbhjsbghjbjsghbghjbsjg.ext3
and you have to edit 3rd file then write command like this
and if u have to edit 1st file then just this would be enough
the wild character * does the rest.