I am trying to take the last two letters out of a filename which are uppercase and append them to the filename in lowercase. I expeceted the command:
awk alternative:
awk
ls | awk '{print $0 tolower(substr($0,length($0)-1,2))}'