processing ksh history files

Chris Riley 201 564-2516 crr at cbnewsm.att.com
Tue Apr 16 04:00:44 AEST 1991


Is there a way to shrink the size of ksh's history file?  I know about
HISTSIZE, but what I want is more subtle.

I frequently run a complicated command many times in a day, and want to
remove multiple occurances of commands at the end of the day so that these
commands would stick around longer, without greatly increasing the size of
the history file.  I am looking for something like this:

	sort $HOME/.sh_history | uniq

Does anyone know of something like this?
-- 
Chris Riley            chris.riley at attbl.att.com



More information about the Comp.unix.shell mailing list