Sponsored Content
Full Discussion: Birthday Calculation
Top Forums Shell Programming and Scripting Birthday Calculation Post 302272348 by fpmurphy on Tuesday 30th of December 2008 10:29:17 AM
Old 12-30-2008
Quote:
[[ ... ]] is not sh syntax. Use [ .. ].
]
Afraid it is supported by IEEE 1003.1:2004. Under shell command language reserved words section:

Reserved words are words that have special meaning to the shell
.....
The following words may be recognized as reserved words on some implementations (when none of the characters are quoted), causing unspecified results:

[[ ]] function select
......
 

4 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Happy birthday Linux

Linux has turned 10 . Happy birthday and congrats to the hackers whose labor pains keep giving us new tarballs. (From /. ) (1 Reply)
Discussion started by: mib
1 Replies

2. What is on Your Mind?

UNIX 40th Birthday

A little off topic, as far as not being a critical help issue, but I have been searching about for the OFFICIAL date that is considered the 40th Birthday of UNIX. Some folks mentioned it in March, I think do to a mention on Slashdot of the 40th birthday being this year, but I thought I recall... (1 Reply)
Discussion started by: scotbuff
1 Replies

3. Linux

Happy Birthday Linux :)

The Linux kernel was originally created by Linus Torvalds, a Finnish computer science student, and first announced to the world on August 25, 1991-exactly 20 years ago today. At the time, Torvalds described his work as a "hobby" and contended that it would not be "big and professional" like the GNU... (2 Replies)
Discussion started by: itkamaraj
2 Replies

4. What is on Your Mind?

Happy birthday Neo

Wish you many many happy returns of the day, stay blessed. (1 Reply)
Discussion started by: Akshay Hegde
1 Replies
cycle(1)							       Utils								  cycle(1)

NAME
cycle - a calendar for women SYNOPSIS
cycle DESCRIPTION
Cycle is a calendar program for women. Given a cycle length or statistics for several periods, it can calculate the days until menstrua- tion, the days of "safe" sex, the fertile period, and the days to ovulations, and define the d.o.b. (date of birth) of a child. It allows the user to write notes and helps to supervise the reception of hormonal contraceptive tablets. FEATURES
The program is capable of: - Calculate of the days of menstruation, based on length of the cycle or on statistics of a period. - Calculate the "safe" sex days, fertile period and day to ovulations - Definition of D.O.B . (Date Of Birth) of a child - Allows to write notes - Helps to supervise reception of hormonal contraceptive tablets HOW DOES IT WORK
It uses the calendar method for the definition of fertile days. For this is necessary to determine duration, at least, of last six cycles. For determine the fertile days it uses this algoritm: - First day: duration of shortest cycle minus 18 - Last day: duration of longest cycle minus 11 - Ovulation: is considered in the middle of fertile period (Determine the exact day isn't possible with the calendar method) Date of a birth of the child is counted from the beginning of last menstruation (in obstetrics are accepted 40 weeks). This date is cor- rected with the duration of a cycle (are subtracted or added same number of days that a cycle differs from 28 days). Is possible check the results at: http://cir.msk.ru/sroki.shtml (in Russian) USAGE
It is necessary to mark the beginning of menstruation. This is possible clicking with the right button on the date and chosing "The begin- ning of a cycle". Similarly the mark can be removed. Using duration of last six cycles, the program will calculate - Fertile period - green cells - Ovulation day (the middle fertile period) - brightly green cell - Beginning of following menstruation - pink cells Cycle duration is set in options or is calculated an average of last six periods. To determine prospective date of a birth of the child, it is necessary first day of last cycle to mark in addition as "Pregnancy". Depending on your purposes, you can display only "Safe" sex days or only fertile days. Information about interesting day can be received clicking with left button. Is possible adding a note to any date using corresponding item of the menu. Day with a note are underlined. It is necessary to note that factor of failures of calendar contraception method is about 10 percent. This method is suitable only for women with enough regular cycle. If your doctor has recommended hormonal contraceptive this program will help to supervise their reception. Closely familiarize with the instruction applied to the chosen preparation. Packing can contain 21 tablet (the circuit of reception 21 day on one tablet, then 7 days pause) or 28 tablets in this case all tablets are accepted without interruption every day of 28. In the program, is marked only day of reception of each first tablet of packing. NOTE: This program is not a reliable contraceptive method. It does neither help to prevent sexual transmision diseases like AIDS. It is just an electronic means of keeping track of some of your medical data and extract some statistical conclusions from them. You cannot con- sider this program as a substitute for your gynecologist in any way. FILES
~/.cycle This is the directory where cycle stores the data. AUTHOR
cycle was written by Oleg S. Gints. This manual page was written for Debian by Miriam Ruiz <little_miry@yahoo.es>. SEE ALSO
You can find cycle's home page at: http://cycle.sourceforge.net/ More information about calendar method are available at: http://www.mama.ru/gynecolog/STA/st18.htm (in Russian) Miriam Ruiz 6 April 2005 cycle(1)
All times are GMT -4. The time now is 11:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy