
9 Mar
2010
9 Mar
'10
3:31 a.m.
Cameron Rangeley 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
You need to escape the <, or else bash parses it directly and tries to use {} \; as an input to find, which clearly makes no sense. find /path/* -name "*.sql" -exec mysql -p password -h \< {} \; This is almost, but not quite the same as the solution liz proposed - which also works in this situation, but may not elsewhere.