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
Liz Quilty liz@v...
Tue Mar 9 16:25:59 NZDT 2010


Heya

Just quote the rest of the command args like this
find /path/* -name "*.sql" -exec mysql "-ppassword -h <" {} \;

Liz


On 9 March 2010 16:19, Peter Reutemann <fracpete@g...> wrote:

> > Thanks
> >
> > I just tried the following variations with the following results.
> >
> > ARGON:/home # find /path/* -name "*.sql" -exec mysql -p password -h < {}
> \;
> > -bash: {}: No such file or directory
>
> Don't use a "*" in the search path. Unless you have a directory
> "/path" your search won't find anything. You have to use "/home/path"
> or, if you're already located in "/home", "path" by itself.
>
> > ARGON:/home/ # find /path/ -name "*.sql" -exec mysql -p password -h < {}
> \;
> > -bash: {}: No such file or directory
>
> Same path problem.
>
> > ARGON:/home/ # find /path/* -exec mysql -p password -h < {} \;
> > -bash: {}: No such file or directory
>
> "*" and path problem.
>
> Cheers, Peter
> --
> Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
> http://www.cs.waikato.ac.nz/~fracpete/<http://www.cs.waikato.ac.nz/%7Efracpete/>          Ph. +64 (7) 858-5174
> _______________________________________________
> wlug mailing list | wlug@l...
> Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.waikato.ac.nz/pipermail/wlug/attachments/20100309/f92dbe6c/attachment.html>


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