The problem is that awk is in POSIX, and perl is not.
There are two common sources of awk for Windows, for example, that drop one exe to provide the interpreter:
http://unxutils.sourceforge.net/
Perl simply wasn't designed to do that.
https://sourceforge.net/projects/ezwinports/files/
Has a recent version of GAWK (Gnu AWK).
I think if you install git for Windows, you get AWK as well.
> I think if you install git for Windows, you get AWK as well.
Yes, but you also get perl there too.
sorry, why this is different to install perl? they look like still need download. I s this because they were contained in larger tool box so more easier get awk by other reasons?
p.s., thanks, I don't know I had have awk in git bash...
Re:Understanding Awk
by newaccount2021 on Thursday September 30, 2021 @01:28PM
(#28708827)
But perl is available by default in almost every free *nix, and for most people, Windows isn't a requirement
In HP-UX 10.20, there was a single perl4 binary that dates from 1993 in /usr/contrib/bin (I checked our K380).
Had Perl held to a single binary, it could be inside busybox.
Perl cannot be inside busybox, and that hasn't been possible since 1993.
Usually not a requirement but it's a "nice to have" sometimes.
This comment reminds me of the joke about the sewage worker, who is chatting about his job and says 'to you it maybe just shit, but to me its my bread and butter'.
Internet always seems the similar, pipes|garbage in| and munging on urban dictionary.....
That said, if you just want to supplement your knowledge of other shell tools and pull out something that can do some obvious text munging, AWK has always looked attractive for the task to me.