[[PageOutline(2-5,Contents,pullout)]] = Renaming user accounts in the database = == Description == The following script renames user accounts in a SQLite database. This is particularly useful when you imported a database from Bugzilla, which uses e-mail addresses as user names, and want to use different user names in your Trac or Subversion. The original version showed how to do it with a canned list of old and new names in the script. This version accepts an old name and a new name on the command line, making sure there are two arguments before proceeding. This seems more immediately useful to me. {{{ #!sh #!/bin/bash if [ $# -ne 2 ] then echo "Usage: renameuser oldname newname" exit 1 fi OLDNAME=$1 NEWNAME=$2 sqlite3 trac.db <