7

Find functions, commands, and builtins

view full story
linux-howto

http://unix.stackexchange.com – Suppose I have the following bash code: !#/bin/bash function print_echo (){ echo "This is print_echo Function" $1; } find ./ -iname "*" -exec print_echo {} \; For each -exec command i get the following error: find: `print_echo': No such file or directory NOTE: Before it , i tested it for a critical program , and solved my program with another algorithm but it's a question: Why find command doesn't accept built-in bash command and function name as argument of -exec? (HowTos)