Rename file - V-Juarez/Learning GitHub Wiki

for f in *txt; do
   mv -- "$f" "${f%.txt}.pdf"
done

Cómo renombrar archivos en Linux – Comando mv