#!/bin/bash

function myFunction() {
	echo some command on file $1
}

#~ myFunction aAA
export -f myFunction
find ~/tmp/ -exec bash -c 'myFunction {}' \;

#~ find ~/tmp/ -exec sh -c \
#~ "function MyFunction() { \
	#~ echo some command on file \$1; \
#~ }; \
#~ MyFunction {}" \;

