 vote
 |
|
Five shell date functions based on the cal[endar] command...
Many shell programs need to compute dates, for example, to retrieve yesterday's backup, to create Oracle table partitions for next week, or to run a job the first Saturday every month. In this article, we present the following date-related functions written in shell:- pn_month — Previous and next x months relative to the given month
- end_month — End of month of the given month
- pn_day — Previous and next x days of the given day
- cur_weekday — Day of week for the given day
- pn_weekday — Previous and next x day of weeks relative to the given day
| | |
| |
|
|