gawk command in CMD with && operator not working

前端 未结 2 574
清歌不尽
清歌不尽 2021-01-23 21:33

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

2条回答
  •  心在旅途
    2021-01-23 21:49

    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.

提交回复
热议问题