# I create a history file for each shell opened # define variable and export (sh, ksh, posix) # # HISTRYFILE=/roots-home/history/$$shell-history; export HISTRYFILE # # THEN, this is the crude and inefficient way I sorted the history # files into months within the history directory. # # ls -al | grep Mar > Mar-history # cat Mar-history | awk '{print "mv " $9 " Mar" }' > mvMar # vi mvMar # sh mvMar # # (the other option is to cat all the history files into one large file, # then sort and use uniq -d, this will produce only the lines that are unique. # the problem with this is that you do not preserve the sequence of commands) # # john Sept 13, 2001 # note: variables, paths and other file names modified from what is actually used, # just in case this does not work as indicated above... :)