A fun little script

#!/bin/bash
if [ "$1" == "-h" ] || [ "$1" == "--help" ] || [ "$1" == "-v" ] || [ "$1" == "--verbose" ];then
  echo -e "http://xkcd.com/149\n"
fi

if [ $UID -eq 0 ];then
  echo "Okay."
else
  echo "What? Make it yourself."
fi

Rating: 
Tags: 

Comments

This script looks interesting to me. The developer has used IF condition in this one. But, if he has used WHILE condition than IF condition it can give more accurate result. This coding is incomplete we must add some more lines to complete this script. I was here for myassignmenthelpaustralia blogspot com and got to know this funny little script. It was stop in the middle that IF condition must be closed and see that code works properly.