How to Import all the files in a directory with a single command using mysqlimport?
Do not use --tab option, use general syntax mysqldump [options] db_name tbl_name ... &gt; dump.sql instead. You'll get an ordinary sql-script that can be executed via CLI-client mysql such way:

mysql -u dbauser -p &lt; /path/to/dump.sql 


Anyway to import different dumpfiles you have to use some shell script that build the list of files in the given directory and then proceed that list one by one like that:

#!/bin/sh
for file in /path/to/*.txt
do 
   mysqlimport database $file
done
####