Help with awk script (syntax error in regular expression)

http://www.unix.com –
I've found this script which seems very promising to solve my issue:
To search and replace many different database passwords in many different (.php, .pl, .cgi, etc.) files across my filesystem.
The passwords may or may not be contained within quotes, single quotes, etc.
Code:
#!/bin/bash
f="passwords.csv"
find /path -type f -name "*.txt" | while read FILE
do
awk 'BEGIN{ FS="," }
FNR==NR{ s[$1]=$2; next }
{
for(i in s){
(HowTos)

Stories similar to Help with awk script (syntax error in regular expression)

I run F12. Since some days my laptop has become very sluggish. In Mozilla, switching between the tabs takes like seconds instead of fraction of a second. Also minimizing and mximizing windows takes long. Switching between the windows too takes long. Now I can't see the cursor while typing this post.

In the following program though most of the working part of the program is commented out, it gives seg fault. reducing the value of MAX to say 10000 removes the seg fault. Why is this happening? it should be only 1 MB only. Is 1 MB too big for an array?