Aliases do not accept positional parameters. You will need to use the function.
f () { find . -name "$1" -type f -exec grep -i "$2" '{}' \; ; }
You also need to specify some of your arguments.
f '*.php' function
This rejects the glob extension so that it findexecutes it, not the shell.
source
share