I'm writing a Bash shell script to backup our Request Tracker (RT) MySQL database on a daily basis. Instead of hard-coding the MySQL database user's password in the shell script I'd like to parse it from RT's RT_SiteConfig.pm file. The relevant line in RT_SiteConfig.pm looks like this:
Set($DatabasePassword , 'db_pw_here');
What would be the "cleanest" way of extracting only the string "db_pw_here" given the line above?