title: AWK end of line sign in regular expressions
body: <p>I have a simple awk script named "script.awk" that contains:</p>
  
  <pre><code>/\/some_simple_string/ { print $0;}
  </code></pre>
  
  <p>I'm using it to parse some file that contains:
  (by using: cat file | awk -f script.awk)</p>
  
  <pre><code>14 catcat one_two/some_thing
  15 catcat one_three/one_more_some_simple_string
  16 dogdog one_two/some_simple_string_again
  17 dogdog one_four/some_simple_string
  18 qweqwe firefire/ppp
  </code></pre>
  
  <p>I want the script to only print the stroke that fully reflect "/some_simple_string[END_OF_LINE]" but not 2 or 3.
  Is there any simple way to do it?</p>
  
  <p>I think, the most appropriate way is to add end-of-line sigh to the regular expression.
  So it will parse only strokes that starting with "/some.." and have a new line at the end of "..string[END_OF_LINE]"</p>
  
  <p>Desired output:</p>
  
  <pre><code>17 dogdog one_four/some_simple_string
  </code></pre>
  
  <p>Sorry for confusion, I was asking for END OF LINE sign in regular expressions.
  The correct answer is: </p>
  
  <pre><code>/\/some_simple_string$/ { print $0;}
  </code></pre>