I\'m issuing gawk command from Windows CMD but it just stuck there.Same command is working perfectly fine in Cygwin Terminal.
I am trying to find first occurrence of ending brac
Standard advice to avoid Windows quoting hell is to store the awk script (in this case NR > 30 && /^}$/ { print NR; exit }) in a file (e.g. named script.awk) and execute it as awk -f script.awk Filename.c > Output.txt.