Little question please. I have regexp in bash.

echo "Fixed" | egrep -o "(In progress|Fixed)"

In a result, i have


According to In progress

echo "In progress" | egrep -o "(In progress|Fixed)"

I will have

In progress

in my console.

But, i want to have result according to lowercase and uppercase for these words

For example:

echo "FIXED" | egrep -o "(In progress|Fixed)"

but, i don't have result in console. How can i resolve this task ? Can you help me please ?

I tried

echo "FIXED" | egrep -o "([a-zA-Z]In progress|[a-zA-Z]Fixed)"

but it does not help. Also, i have to receive result only for words, In progress and Fixed. Thanks for your help.

0 Answers