In part II of this series of articles on doing date math from the command line we want to try to solve a problem we noted in part I: passing the date command a date specification something like "the ...
The "time" command in Linux is a process timer and does not display the system time. Though counterintuitive, the Linux "date" command displays the time, as well as the date, on a Linux box. You can ...
Linux marks time in the number of seconds since the start of the Linux epoch. Here's a script for using that information to figure how many days separate two dates expressed in traditional calendar ...
If you want to see a particular version or element of a date, use the characters described in the list of options below. %D – Date as mm/dd/yy %Y – Year (e.g., 2020) %m – Month (01-12) %B – Long month ...
Using two of these values you can determine the elapsed time. The following script defines a single bash function: timer. If called with no arguments it outputs the current second count. If called ...
I have a batch file that performs nightly backups of my Outlook PST files, dropping them on a remote machine, encrypted using PGP-command line. It all works fine and dandy. However, as an added touch, ...