If you have GNU date on your system (try ______________________ Dave Taylor has been hacking shell scripts for over thirty years. He's the author of the popular "Wicked Cool Shell Scripts" and can be found on Twitter as @Dave Taylor and more generally at About seven years ago, Oracle released the first commercial database on Linux.Oops, 1777 wasn't a leapyear, so February only had 28 days.$ sh 2 29 1776 checking for feb 29 : was 1776 a leap year?Mixed together and slightly tweaking the output, we now can test the validity of any date specified in the correct month, day, year format: $ sh 2 29 2013 The date you specified -- 2-29-2013 -- is valid. $ sh 1 33 2013 Invalid date: Month #1 has 31 days, so day 33 is impossible.$ sh 2 29 2013 2013 wasn't a leapyear, so February only had 28 days.
There are a couple different strategies for that, but let's be lazy for now and prompt the user for the month, then day, then year, requiring numeric values. Validating a user-specified date is pretty straightforward until we get to the issue of leap years.
And of course the Oracle Database itself uses operating system resources and is designed to interact closely with its environment.
Furthermore, many sysadmins and DBAs find it necessary or convenient to automate tasks related to their work.
Shell scripts play a significant role in the Linux System from the time it is installed.
Various scripts are called when the system is started up and shut down.