I have just started learning shell script recently, so I don\'t know much about it.
I am trying to find example of time based while loop but not having any luck.
You can try this
starttime = `date +%s` while [ $(( $(date +%s) - 3600 )) -lt $starttime ]; do done
where 'date +%s' gives the current time in seconds.
'date +%s'