title: Executing this shell script gives command not found error
body: <p>I am new to shell scripting. I am trying to write a script that reads URLs from a text file line by line and then fetches them using <code>wget</code>. Also I need to parse the log file for error messages. </p>
  
  <pre><code>#!/bin/sh
  # SCRIPT:  example.sh
  
  #reading the url file line by line
  
  DIR = /var/www/html/
  
  # wget log file
  LOGFILE = wget.log
  
  # wget output file
  FILE = dailyinfo.`date +"%Y%m%d"`
  
  cd $DIR
  
  FILENAME = url.txt
  cat $FILENAME | while read LINE
  do
      echo "$LINE"
      wget $LINE -O $FILE -o $LOGFILE
  done
  </code></pre>
  
  <p>I have changed the permissions using <code>chmod +x example.sh</code>
  but upon execution I get <code>command not found</code> error for <code>DIR</code>, <code>FILE</code> and <code>LOGFILE</code>.
  How to correct it?
  Also how to go about the parsing part?</p>