for i in $* do if [ -d $i ] then echo "large filename size is" echo `ls -lR $1 | grep "^-" | tr -s ' ' | cut -d' ' -f 5 | sort -n| tail -1` > out else echo "not directory" fi done filename="rit.txt" if [ -e $filename ] then mv -f $filename $filename"_old" touch $filename else echo “File does not exist ---Creating” touch $filename fi crontab -e //install your cron job by running this command. crontab -l : List the all your cron jobs. crontab -r : Delete the current cron jobs. 0, 30 * * * * 1.sh echo "'$*' output is $*" echo "'$#' output is $#" echo "'$1 & $2' output is $1 and $2" echo "'$@' output is $@" echo "'$?' output is $?" echo "'$$' output is $$" sleep 400 & echo "'$!' output is $!" echo "'$0' your current program name is $0"