vim a.awk

BEGIN {
    while (( getline line < "./1.txt") > 0) {
        gsub(/INSERT INTO ".*" \(.*\) VALUES/,tolower(line), line);
        print line;
    }
}

执行awk -f a.awk