On Fri, 18 Nov 2016, Rich Shepard wrote:

I was curious whether awk is a soft link to gawk on my Slackware systems
so I checked. They are two separate binaries. Since awk is apparently not
the same as gawk, what version of awk does it represent?

Are they separate binaries, or are they hard-linked (rather than symlinked)?

The file size will be exactly the same if they're hard-linked. On a CentOS 7 machine, for instance, unzip and zipinfo are actually the same binary:

[heinlein@hub bin]$ ls -l unzip zipinfo
-rwxr-xr-x. 2 root root 181248 Feb 25  2015 unzip*
-rwxr-xr-x. 2 root root 181248 Feb 25  2015 zipinfo*

They both share the same inode:

[heinlein@hub bin]$ stat -c '%i %N' unzip zipinfo
978894 ‘unzip’
978894 ‘zipinfo’

If you look at the man page, you'll see it makes that clear.

Otherwise, try 'awk --version' and 'gawk --version'. On my Mac, awk is the BSD version, while gawk is from GNU:

[client]$ awk --version
awk version 20070501
[client]$ gawk --version
GNU Awk 4.1.4, API: 1.1

--
Paul Heinlein <> [email protected] <> http://www.madboa.com/
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to