С помощью zip есть простое решение: find ./dir -name "*.xml" -print | zip archive -@
Bash Справочник v0.05 © 2007-2025 Igor Salnikov aka SunDoctor