|登录 |注册

查看: 1974|回复: 2
打印 上一主题 下一主题

各位高手帮帮忙~

[复制链接]
现代掌门人
2010-11-7 10:58 PM
这是我老师给的功课~请问有哪位高手能帮帮忙??我老师用fedora13~谢谢各位
Write a shell script (bash) called birthday. It will accept a date in the format of 'mm/dd/yyyy'; however, this input format should not require any validation. Nevertheless, you are required to check whether the first parameter is provided; if not, display the usage of birthday script. Your script must be able to do the following:

   1. If it is a leap year display "YYYY is a leap year", else display "YYYY is not a leap year" where YYYY is the input year.
   2. Display the day of week (Monday, Tuesday,..,Sunday).
   3. Display the number of days before or after your birthday this year.
   4. Display your age.
   5. Display a calendar on input date.
a13x
2012-3-26 04:38 AM
现在的学生, 我真的无语。
chancyde
2012-3-31 06:00 PM
这是我老师给的功课~请问有哪位高手能帮帮忙??我老师用fedora13~谢谢各位
Write a shell script (bash)  ...
现代掌门人 发表于 2010-11-7 10:58 PM


上網 google 抄吧......你太懶惰...
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2025-2-11 09:21 PM , Processed in 0.090698 second(s), 24 queries .

Powered by Discuz! X2.5 © 2001-2012 Comsenz Inc.

本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved

Dedicated Server powered by iCore Technology Sdn. Bhd.

合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部