In a text file, test.txt, I have the next information:
sl-gs5 desconnected Wed Oct 10 08:00:01 EDT 2012 1001
I want to extract the hour of
How about sed?
hour=`echo $hour|sed -e "s/^0*//g"`