The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 09-30-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Try something like this:
Code:
$ cat dater
#! /usr/bin/ksh
set -A months junk Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
mthKey0=07
trxDay=20

mth=${mthKey0#0}
echo ${months[mth]}${trxDay}
$ ./dater
Jul20
$