I have come across this issue while trying to build up a script to do grep on multiple files for 10 different word.The script I created, is (minified)#!bin/bashalias grep='grep -n'out=`grep word $1`Outputsome text word  some other text word more textThe grep does work, but the alias is not being considered. It just outputs the matching lines and not the line numbers (-n is for line numbers)and now if i run the below, it works fine#!bin/bashout=`grep -n word $1`Output and the expected output from above script:233: some text word  532: some other text word more textI have grep statement at many places in the script, and i don't want to go and edit each line. I am looking to override the grep once by aliasing it, but it doesn't seem to be working.What could be the issue here? How can i make the alias work?
locally created alias not being used if called using backticks (`)
bash;shell script;alias