how do i egrep set of characters ?
egrep -iwF "id|the|*"
[/CODE]
throws following excption
egrep can use only egrep pattern syntax
[/CODE]
I want to egrep the string along with (*) special character
how do i egrep set of characters ?
egrep -iwF "id|the|*"
[/CODE]
throws following excption
egrep can use only egrep pattern syntax
[/CODE]
I want to egrep the string along with (*) special character
Drop the F option. Probably not supported by the version of egrep .
-F does not work with egrep.
egrep is like grep -E and grep -F is like fgrep - that explains the error message.
-F (plain strings) and -E (extended regular expression) are mutually exclusive.
Try to use grep -E instead of egrep .
Try to use grep -F instead of fgrep .
Both, egrep and fgrep are deprecated.
grep uses regular expressions. * does not mean wildcard, * means 'zero or more of the previous character'.