Skip to content
Advertisement

Tag: syntax

Regex is not checking some part of text

I’ve example file with data to analyze by egrep command: My regexp looks that: I wan’t to find only rows where [RM# {digits}] AND [IG# {digits}] but it returns like using OR and results looks following: Expected output is Answer Looks like you want to search for a line that should match two different strings in any order.. one way

Why if statement always is true? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 5 years ago. Improve this question

Advertisement