<p>I am searching for "o" then prints all lines with "o". Any suggestion/code I must apply?</p>

<p>data.txt:</p>

<pre><code>j,o,b:
a,b,d:
o,l,e:
f,a,r:
e,x,o:
</code></pre>

<p>desired output:</p>

<pre><code>j,o,b:
o,l,e:
e,x,o:
</code></pre>

```
```
grep "o" data.txt
```
```
Does that help? I don't know Perl, but you can get the same output using the above grep.