title: program to check if today is sunday
body: <p>This program is about  to check if today is sunday or not i am considering the output of this as string <code>"$(date|cut -d ' ' -f 1)"</code> and then i am comparing the two strings</p>
  
  <pre><code>#!/bin/bash
      datetoday="$(date|cut -d ' ' -f 1)"
  echo "${datetoday}"
  s2="Sun"
  if [ "${datetoday}" == "$s2" ]
  then
  echo "weekend"
  else
  echo "not weekend"
  fi
  </code></pre>