Thornton Prime wrote:
> On Thu, 1 Feb 2001, Bret Hughes wrote:
> > BTW I could not find a good way to determin the number of days between two dates
> > using bash. What would be a good way to do this?
>
> date -d '5 days ago'
>
> will give you the date five days ago which is prettyu helpful. You
> probably could do
>
> FIRST=`date -d "1 month ago" +"%j"`
> SECOND=`date +"%j"`
> echo "${SECOND} - ${FIRST}" | bc
Very cool Thornton Thanks for the tip.
Bret
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list