On 9 March 2010 16:19, Peter Reutemann
<fracpete@gmail.com> 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.