On Wednesday 2008 November 26 16:28, Robert Holtzman wrote: > I've been going thru a number of bash related web sites looking for the > way to eliminate duplicates in ~/.bash_history. So far I've turned up I use: export HISTCONTROL=ignoredups:erasedups My .bash_history doesn't have any adjacent duplicates. Not sure why erasedups doesn't seem to be working. > awk '!x[$0]++' .bash_history > .bash.tmp && mv -f .bash.tmp .bash_history This wouldn't change the way bash writes the file, but it should eliminate all duplicates, adjacent or not. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss03@volumehost.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.org/ \_/
Attachment:
pgpvNhWZtOIcx.pgp
Description: PGP signature