Skip to content

Instantly share code, notes, and snippets.

@grodzik
Created April 15, 2010 08:58
Show Gist options
  • Save grodzik/366869 to your computer and use it in GitHub Desktop.
Save grodzik/366869 to your computer and use it in GitHub Desktop.
#!/bin/sh
tmpf=`mktemp`
f=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/history
sort -k3 $f | awk '{ print $1, $2, $3 }' | uniq -f2 | sort > $tmpf && mv $tmpf $f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment