title: How to find string with readfile if we know only a part of the string?
body: <p>How can I find a string in a text file if I know only the part of the string? For example, I know only <code>&quot;.someserver.com&quot;</code></p>
  <p>But the whole text in the file looks like the following:</p>
  <p><code>&quot;hostname1.expedite.someserver.com&quot;</code></p>
  <p>So the point is to find the whole name by knowing only a part of it.</p>
  <p><strong>part of the file content:</strong></p>
  <pre><code>{&quot;attributes&quot;: {&quot;meta_data&quot;: {&quot;created_at&quot;:1614882362.179626, &quot;created_by&quot;: &quot;admin&quot;}, &quot;site&quot;: &quot;AF002&quot;}, hostname:&quot;hostname1.expedite.someserver.com&quot;,
  </code></pre>