1 2 3 4 5 6
#!/usr/bin/env bash # Change all arch array that aren't any or mips64el already find -name 'PKGBUILD' -exec sed -i "s/^\(arch=([^)anym]\+\))/\1 'mips64el')/" '{}' \; exit $?