Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Para cambiar el nombre de varios archivos CFDI y asignarles el UUID por nombre.
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
You can’t perform that action at this time.