history cammand with date format !!!
Friends ,
In aix unix server I can see the the 'history' command with exporting this line " export HISTTIMEFORMAT="%D%T - "" from the "bash" sehll . But I cannot see history command with date using " export HISTTIMEFORMAT="%D%T -"" from "ksh" shell .
Like ,
bash-3.00$ export HISTTIMEFORMAT="%D%T - "
bash-3.00$ history
2 02/18/0900:15:14 - df -g
3 02/18/0900:15:17 - pwd
4 02/18/0900:15:22 - history
Here I see with the date format .
But in ksh shell ,
$ export HISTTIMEFORMAT="%D%T - "
$ history
876 absh
877 bash
878 bash
879 clear
880 bash-3.00$ history
881 2 02/18/0900:15:14 - df -g
882 3 02/18/0900:15:17 - pwd
883 4 02/18/0900:15:22 - history
884 clear
885 export HISTTIMEFORMAT="%D%T -
886 clear
887 export HISTTIMEFORMAT="%D%T -
888 bash
889 clear
890 export HISTTIMEFORMAT="%D%T - "
891 history
I cannot see the date with the line here .
Can u plz tell me why it is happening and how can i see it in the ksh shell ?
|