I have dafineddefined the following alias in .bashrc~/.bashrc
:
alias fg='find . -name $1 | xargs grep --color $2'
in order to write
fg "*.txt" " my_text "
and find all file that have extension .txt and contain " my_text " but it does not work. Why?