grep -E . ERE . Alternation

commandline session

$ 4.1.5 1 16---> echo  sdf | grep -E 'a|b'
$ 4.1.5 2 17---> echo  sdf | grep -E 'a|b|c'
$ 4.1.5 3 18---> echo  sdf | grep -E 'a|b|c|d'
sdf
$ 4.1.5 4 19---> echo  sdf | grep -E 'a|d'
sdf
$ 4.1.5 5 20--->

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s