Skip to content

Instantly share code, notes, and snippets.

@tr37ion
Created December 16, 2013 18:47
Show Gist options
  • Save tr37ion/7992162 to your computer and use it in GitHub Desktop.
Save tr37ion/7992162 to your computer and use it in GitHub Desktop.
Extract and reorganize (sort) Thunderbird identities (alpha version)
!#/bin/bash
# Extract and reorganize (sort) Thunderbird identities (alpha version)
#
# --> Be careful!
# If you have more than one account, you have to delete those IDs which are linked to other accounts.
grep 'useremail' prefs.js | sort -t"," -k2 |egrep -o 'id[0-9]{1,}' | tr '\n' ', '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment