On Thu, Dec 28, 2000 at 05:26:03PM +0530, sreangsu acharyya wrote:

>   is there anyway by which one can compare 2 date strings as returned by
> "date" in bash.

Here's an example:

a=`date +%Y%m%d%H%M%S`; sleep 5; b=`date +%Y%m%d%H%M%S`; 
if test $a -lt $b; then echo "OK"; else echo "Not OK"; fi


HTH

-- 
Sankaranarayanan K. V.          | [EMAIL PROTECTED]
Motorola India Electronics Ltd  | http://www.mot.com/miel

----------------------------------------------
LIH is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.

Reply via email to