baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- From: "Sheldon Isaac" <SheldonIsaac AT MyRealBox.com>
- To: baslinux AT lists.ibiblio.org
- Subject: Re: [BL] Another UNIX question
- Date: Sun, 19 Nov 2006 19:52:26 -0500
Steven said:
> Sheldon Isaac wrote:
> >
> > The purpose is to find out how many days it is until Jan 15 2007.
> > Under BL 3.40 here, it gives errors right away; wrong syntax.
> Why don't you use the following to get how many days have elapsed in
> the current year:
--------
date +%j
--------
> Subtract it from 365 and add it to 15 (the number of days from the end
> of the current year to Jan 15).
It worked; but I still need some basic usage instructions for the bash in
BL3.40
Thanks much,
Sheldon
---------------
#!/bin/sh
today=`date +%j`
left=`expr 365 - $today`
total=`expr $left + 15`
echo It is $total days until Jan 15.
---------------
-
Re: [BL] Can BL copy Win98?
, (continued)
- Re: [BL] Can BL copy Win98?, sindi keesan, 11/25/2006
- Re: [BL] Can BL copy Win98?, Karolis Lyvens, 11/27/2006
- Re: [BL] Can BL copy Win98?, sindi keesan, 11/27/2006
- Re: [BL] Can BL copy Win98?, sindi keesan, 11/27/2006
- [BL] IBM-with-onboard-RAM boot problems, ramdisk and loop, sindi keesan, 11/28/2006
- Re: [BL] IBM-with-onboard-RAM boot problems, ramdisk and loop, Ron Clarke, 11/28/2006
- Re: [BL] IBM-with-onboard-RAM boot problems, ramdisk and loop, sindi keesan, 11/28/2006
- Re: [BL] Can BL copy Win98?, Karolis Lyvens, 11/28/2006
-
Re: [BL] Another UNIX question,
3aoo-cvfd, 11/19/2006
-
Re: [BL] Another UNIX question,
Sheldon Isaac, 11/19/2006
-
Re: [BL] Another UNIX question,
3aoo-cvfd, 11/19/2006
- Re: [BL] Another UNIX question, Sheldon Isaac, 11/20/2006
-
Re: [BL] Another UNIX question,
3aoo-cvfd, 11/19/2006
-
Re: [BL] Another UNIX question,
Sheldon Isaac, 11/19/2006
Archive powered by MHonArc 2.6.24.