News for hackers. Stuff that matters.
Re:Understanding Awk by chasil on Thursday September 30, 2021 @01:15PM (#28708690)
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/

https://frippery.org/busybox/

Perl simply wasn't designed to do that.

Re:Understanding Awk by sigzero on Thursday September 30, 2021 @09:40PM (#28713531)
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.

Re:Understanding Awk by metaphor on Friday October 01, 2021 @03:26AM (#28715636)
> I think if you install git for Windows, you get AWK as well.

Yes, but you also get perl there too.

Re:Understanding Awk by popcube on Friday October 01, 2021 @10:29PM (#28725424)
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
Re:Understanding Awk by chasil on Thursday September 30, 2021 @09:49PM (#28713592)
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.

Re:Understanding Awk by sigzero on Thursday September 30, 2021 @09:48PM (#28713587)
Usually not a requirement but it's a "nice to have" sometimes.