Can anyone tell me how to add a date / time stamp to the HISTFILE under Korn Shell?
Can anyone tell me how to add a date / time stamp to the command prompt under Korn Shell?
My current command prompt looks like this:
<User_ID> @ <Hostname> | <Current_Directory>
-->
I want to add the date to the first line, like this:
<User_ID> @ <Hostname> | <Curr_Dir> (<date>)
-->
Example:
root @ anysys | /etc (May 6, 12:42:16)
"pwd" is a system call, and updates dynamically, but "date" doesn't seem to want to update automatically.
I'm checking the ksh man pages, and the Korn Shell book, but haven't had any luck yet...
Any help would be greatly appreciated...
TIA
Joe F...
HP-UX SysAdm
Can anyone tell me how to add a date / time stamp to the command prompt under Korn Shell?
My current command prompt looks like this:
<User_ID> @ <Hostname> | <Current_Directory>
-->
I want to add the date to the first line, like this:
<User_ID> @ <Hostname> | <Curr_Dir> (<date>)
-->
Example:
root @ anysys | /etc (May 6, 12:42:16)
"pwd" is a system call, and updates dynamically, but "date" doesn't seem to want to update automatically.
I'm checking the ksh man pages, and the Korn Shell book, but haven't had any luck yet...
Any help would be greatly appreciated...
TIA
Joe F...
HP-UX SysAdm