Write shell script which gets executed the moment user logs in, it should greet user
Script first finds out current hour using date command
Depend upon time of the day, it will say Good morning or Good afternoon to user.
Open your bash / shell startup file i.e. profile file – ~/.bash_profile and put path to this script [...]
A leap year comes once every four years. It is the year when an extra day is added to the Gregorian calendar used by most of the world.
An ordinary year has 365 days. A leap year has 366 days. The extra day is added to the month of February. In an ordinary year, February has [...]
Date is entered in mm/dd/yyyy format using a keyboard. Various conditions are applied to make sure date is valid. Read the program comments to get idea about program logic.
#!/bin/bash
# Shell program to find the validity of a given date
# ———————————————–
# Copyright (c) 2005 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 [...]
Shell Script to find the validity of a given date
Date is entered in mm/dd/yyyy format using a keyboard. Various conditions are applied to make sure date is valid. Read the program comments to get idea about program logic.
#!/bin/bash
# Shell program to find the validity of a given date
# ———————————————–
# Copyright (c) 2005 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 [...]
{ 0 comments }