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))}'
OSX (BSD) sed doesn't support functions \L, \E etc. Install gnu sed on Mac using this option:
\L
\E
gnu sed
brew install gnu-sed