Quantcast
Channel: A Bash Shell Scripting Directory » Time and Date
Browsing all 3 articles
Browse latest View live

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...

View Article



Shell Script to read any year and find whether it is a leap year or not

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...

View Article

Shell Script Which Gets Executed With Greetings – The Moment User Logs In

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...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images