An attempt to put my random thoughts on the piece of page...

Tuesday, June 7, 2011

Shell script of Software engineer (Meri Kahani... Meri jubani)



#*** Note: It is pseudo code. Syntax need not be validated ***

#!/bin/bash
alias go='cd'

while [ 1 ]
do
  if [[ "`date +%a`" -eq "Sat" ] -o [ "`date +%a`" -eq "Sun" ]]; then   
    echo "!! Holiday !!";
    echo "Movie, Friends, Shopping, Travel etc etc";
else 
    go $WORK  
    echo "hi hello how are u.. start work";  
    InvestigateTheBug;
    TakeLunch;
    FixTheBug;
    VerifyTheBug;
    DeliverFix;  
    echo "Bye.. See you tomm."  
    go $HOME  
    free -relax
    TakeDinner;
    sleep 5 h 
    uptime
    reset
fi
done

No comments:

Post a Comment