со страницы руководства xargs
:
-I replace-str
Replace occurrences of replace-str in the initial-arguments with names
read from standard input. Also, unquoted blanks do not terminate input
items; instead the separator is the newline character. Implies -x and -L
Вы используете строку замены без указания флага, который ее разрешает.Попробуйте:
ls -t latestfile* | head -1 | xargs -I {} mv {} newfilename