0

Help with awk script (syntax error in regular expression)

view story
linux-howto

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)