Simple example for creating your own linux command | learn to make linux command | simple example of getopts command
#@program: To parse a commandline arguments # function with the help of getopts #@author : Binoy Wilson #@Date : 4th Jan, 2012 while getopts cdv: OPTION do case $OPTION in c)clear;; #option to clear screen d)ls;; #option to list files in the current directory v)vi $OPTARG;; #option To create a file as requiresd in vi *)echo "sorry wrong commands arguments entered -c -d -v are only accepted";; esac done