Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    it's kind of annoying that gawk doesn't understand -- as most other GNU programs do or have some other way of stopping it from interpreting = in a filename asvar=value. Commented Aug 21, 2017 at 11:41
  • gawk does understand -- as end-of-options like all POSIX awk implementations (awk -- 'code' args) but it doesn't stop arguments with = from being treated as variable assignments. It has awk -E file.awk args for that though (so you can do gawk -e 'code' -E /dev/null other args x=y.txt File*.txt...). But that's gawk-specific. Commented Aug 21, 2017 at 17:34