added igrep for inverse grep
This commit is contained in:
@@ -287,7 +287,7 @@ end
|
|||||||
|
|
||||||
################ GREP #########################################################
|
################ GREP #########################################################
|
||||||
|
|
||||||
if test -e /usr/bin/ugrep
|
if command -q ugrep
|
||||||
alias grep='ugrep --color=auto'
|
alias grep='ugrep --color=auto'
|
||||||
alias egrep='ugrep -E --color=auto'
|
alias egrep='ugrep -E --color=auto'
|
||||||
alias fgrep='ugrep -F --color=auto'
|
alias fgrep='ugrep -F --color=auto'
|
||||||
@@ -296,6 +296,12 @@ else
|
|||||||
alias fgrep='grep -F'
|
alias fgrep='grep -F'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if command -q ugrep
|
||||||
|
alias igrep='ugrep --color=auto --invert-match'
|
||||||
|
else if command -q grep
|
||||||
|
alias igrep='grep --color=auto --invert-match'
|
||||||
|
end
|
||||||
|
|
||||||
################ WGET #########################################################
|
################ WGET #########################################################
|
||||||
|
|
||||||
if test -e /usr/bin/wget
|
if test -e /usr/bin/wget
|
||||||
|
|||||||
Reference in New Issue
Block a user