University Crest

[wlug] CLI help

wlug archive index About the wlug list Mailing lists home
To The University of Waikato HomepageWaikato Home > Waikato Mailing Lists > wlug Info > wlug archives
Peter Reutemann fracpete@w...
Tue Mar 9 16:08:12 NZDT 2010

> Any idea what is wrong with this command??
> find /home/path/* -name *.sql -exec mysql -p password -h < {} \;
> I am needing to import about 250 sql files.

Try this:

find /home/path/ -name "*.sql" -exec mysql -p password -h < {} \;

BTW you will have to enter the password 250 times!

Cheers, Peter
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ           Ph. +64 (7) 858-5174

More information about the wlug mailing list
NOTICE: This is an archive of a public mailing list. The University of Waikato is not responsible for its contents.

The University of Waikato - Te Whare Wananga o Waikato