Regex to match unique substrings?

Note, you want grep -E or egrep not grep -e as that's a different option for lists of patterns.

Ls | grep -E "\.(sty|cls)$" \. Matches literally a ". " - an unescaped .

Matches any character (sty|cls) - match "sty" or "cls" - the | is an or and the brackets limit the expression. $ forces the match to be at the end of the line Note, you want grep -E or egrep, not grep -e as that's a different option for lists of patterns.

This regex: \.(sty|cls)\z will match any string ends with . Sty or . Cls EDIT: for grep \z should be replaced with $ i.e.

\.(sty|cls)$ as jelovirt suggested.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions