amazon.

Archives

Posts Tagged ‘KSH’

Determine Yesterday’s Date in a unix environment using ksh and date()

Unix and KSH to find yesterday’s date

Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus, 2nd Edition



Wicked Cool Shell Scripts: 101 Scripts for Linux, Mac Osx, and Unix Systems

I did a bunch of searching and found a lot of places online to do timestamp conversions, and perl programs to get yesterday’s date. Some worked and some didn’t. But none the less, I didn’t need a whole program to do this, and I especially didn’t need an online converter for use in my app. I needed something simple and small that didn’t use a lot of calulations.

Here is what i came up with for use in the shell (KSH)
Read the rest of this entry »