4 ms·
You could alias egrep="grep -E" to avoid changing existing scripts. Sure, it's not ideal but it might tide you over in the meantime.
by Dutchie987 3y ago
You could alias egrep="grep -E" to avoid changing existing scripts. Sure, it's not ideal but it might tide you over in the meantime.
- rwmj 3y agoalias doesn't work in scripts. I could manually patch /usr/bin/egrep, but really why? What are we saving by getting rid of two microscopic shell scripts?
- Something1234 3y agoAlias at the top of your script. Sure /bin/bash doesn't read .bashrc when ran in batch mode, doesn't mean you can't patch your script.