I think the one-liner would be better as
for i in [0-8]*/*.sql; do psql -U <user> -h localhost -d <dbname> -f $i ; done
find . -name "*.sql" -exec psql -U <user> -h localhost -d <dbname> -f {} \;
I think the one-liner would be better as
or even better as something like [1] http://mywiki.wooledge.org/ParsingLs