ls -1v *.txt | psql -c " create table if not exists t(filename text); copy t from stdin; "