FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-26-2008, 10:28 PM
Robert Holtzman
 
Default .bash_history duplicates

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


export HISTCONTROL=ignoredups
export HISTCONTROL=erasedups
awk '!x[$0]++' .bash_history > .bash.tmp && mv -f .bash.tmp .bash_history
export HISTCONTROL=ignoreboth

Tried them all in ~/.bashrc one at a time and rerunning .bashrc each time.
So far no joy. Any pointers and/or sources appreciated.


Thanks.

--
Bob Holtzman
"If you think you're getting free lunch,
check the price of the beer"


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 04:23 PM.

VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org