I can't understand why using alias prompts an error, but using the same syntax without alias does not...
alias grep='egrep -iIs '
19:47:24 ~
cat /etc/services | \grep ssh
ssh 22/tcp # SSH Remote Login Protocol
19:47:26 ~
cat /etc/services | grep ssh
grep: option requires an argument -- 'X'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
19:47:33 ~
cat /etc/services | egrep -iIs ssh
ssh 22/tcp # SSH Remote Login Protocol
Can you explain this?
grep is aliased to `egrep -iIs '
grep is /bin/grep
egrep is /bin/egrep – johnmuir Sep 14 '17 at 18:06