I am trying to make a bash alias to grep for Git conflicts within files after a merge occurs. Usually on the command line with bash shell, I run grep -nr '<<<<<<<'
, where the single-quotes are needed to escape the special characters.
My ~/.bashrc
file has this so far:
alias confs="grep -nr \'<<<<<<<\'"
However, the output when runing confs
command is
bash: syntax error near unexpected token `<<<'.
How do I do this? Thanks
alias confs="grep -nr '<<<<<<<'"
accomplish what you want? `