1 2 3 4 5 6 7 8 9
#!/bin/bash for i in $(find ${1}/vpp -name *.api.json -type f -print); do echo ../${i} /usr/share/vpp/api/ >> ${2} done for i in $(find ${1}/vlib-api -name *.api.json -type f -print); do echo ../${i} /usr/share/vpp/api/ >> ${2} done