title: Bash assigning tail value to a variable
body: <p>Trying to create a workflow with a "output" file that updates from time to time.</p>
  
  <pre><code>    #!/bin/bash
  
  echo "start flow"
  
  tail -n output.txt
  </code></pre>
  
  <p>So when the last line of "output.txt" is created, then it should be a variable, something like this:</p>
  
  <p>Lets say that the last line in "output.txt" is a youtubelink. (for example)
  then the code should be something like:</p>
  
  <pre><code>firefox $'the_last_line_in_output.txt'
  </code></pre>
  
  <p>Dont really know how to do this so if anyone could help me that would be awesome :)</p>
  
  <p>/</p>