title: Bash how to parse log and check differently formatted lines match
body: <p>I have a log file I'm trying to parse that looks a bit like this with other lines omitted</p>
  
  <pre><code>[10:44:20] [4m[36m$ -PATH /users/helloworld/folder[0m
  ...
  [10:44:21] ▸ [35m-PATH[0m
  [10:44:21] ▸ [35m/users/helloworld/folder[0m
  </code></pre>
  
  <p>I want to have a small script to say if the first and second occurrences of -PATH match /users/helloworld/folder</p>
  
  <p>I'm not sure how to account for the first occurrence being on the <em>same</em> line, and the second occurrence appearing on the <em>next</em> line</p>
  
  <p>And then afterwards being able to echo "MATCHED" or "DIDNT MATCH" depending on whether those occurrences are the same.</p>
  
  <p>I'm fairly new to regex/grep so finding it hard to get my head around this kinda thing, thanks in advance.</p>