Created
January 8, 2020 20:07
-
-
Save andresaquino/173ac82b578b20522fee23e92e7d5fcc to your computer and use it in GitHub Desktop.
Para cambiar el nombre de varios archivos CFDI y asignarles el UUID por nombre.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for oldname in Comprobantes*.xml; do newname=$(xmllint --format $efile | grep -o 'UUID="[^"]*' | sed -e "s/UUID=.//g"); mv ${oldname} ${newname^^}.xml; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment