title: Practice Linux Shell Scripting
body: <p>My homework assignment is to write a shell script to read a "log.txt" and display its comments line by line. Each line should be prefixed by its line number.</p>
  
  <p>Script I have so far:</p>
  
  <pre><code>path="/home/user/log.txt"
  while i=read -r line
  do
     echo "$line"
  done &lt; "$log_file"
  </code></pre>
  
  <p>Input file:</p>
  
  <pre><code>How are you
  Where are you
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>1. How are you
  2. Where are you
  </code></pre>