You could also do it with sed, again assuming a *nix system or gnu tools installed. I'm rusty, but something along the lines of:
for file in `ls`;
do
sed -i "s/SELECT user_id, username,/SELECT id, nick,/g" $file;
done If you want a backup copy, use -i.bkup