sunhux
asked on
set history variable HISTTIMEFORMAT in Unix Bourne & Korn Shell
Is there any way I can set the following variable in Bourne Shell (in /etc/profile) :
export HISTTIMEFORMAT="%A %Y-%m-%d [%T %z]
Basically when I issue "history" or look into $HOME/.sh_history for each single userid,
I need the history-logged commands to be date+time stamped.
This can be done in Bash (Bourne Again shell) but what I want is for Bourne & Korn
shells.
It's not an option for me to change the existing users' Shell to Bash
I'm working on HP-UX B11.11 & various RHES/RHEL version 3, 4 & 5
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.