linux: erase duplicates in .bash_history


SUBMITTED BY: Guest

DATE: Nov. 30, 2012, 4:20 a.m.

FORMAT: Bash

SIZE: 76 Bytes

HITS: 1201

  1. awk '!x[$0]++' .bash_history > .bash.tmp && mv -f .bash.tmp .bash_history

comments powered by Disqus