On 04/02/2015 11:59 AM, David Haller wrote:
I just remembered: how are your shopt settings?
$ shopt|grep hist cmdhist on histappend on histreedit off histverify off lithist off
Anyway, I just use this to uniqify my big historyfile:
==== #!/bin/bash HFILE="$1" TMPF="$(mktemp "${HFILE}.$$.XXXXXXXXXX")" if time tac "$HFILE" | awk '!x[$0]++ { print; }' > "${TMPF}"; then tac "${TMPF}" > "${HFILE}" && rm "${TMPF}" fi ====
HTH, -dnh
Always does. $ shopt|grep hist cmdhist on histappend on histreedit off histverify off lithist off I'll grab the current from the shells repo. I hope that doesn't break something else :-) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org