On 03/05/2015 12:08 AM, Morgan Weetman wrote:
>> The best I could think of is to avoid the extra shell, and to directly
>> invoke /usr/bin/test instead:
>>
>> $ find . -type d -exec test -f '{}'/.export \; -print
>>
>> This will work for both, directory names with '"' and with '\'' in their
>> names.
> My first advice was going to be "don't have directory names with quotes in
> them" .. :)
If you have control over it, then yes ... but there should be
a logic which is much clearer:
$ find . -type f -name '.export' -print
;-)
Have a nice day,
Berny