friends
How do I know which version of awk using my linux?
friends
How do I know which version of awk using my linux?
My first idea woud be to read the man page. man awk
:
Others might accept the --version
option, and still others don't provide anything at all.
---------- Post updated at 22:23 ---------- Previous update was at 22:15 ----------
strings /usr/bin/awk | grep -E "version|awk"
/usr/src/usr.bin/awk/../../contrib/one-true-awk/b.c
?--version
awk %s
version 20110810 (FreeBSD)
weird printf conversion %s
out of memory in awkprintf
out of memory in awksprintf
awkdelete
can't happen: bad conversion %c in format()
might yield some insight, but YMMV...
---------- Post updated at 22:28 ---------- Previous update was at 22:23 ----------
ALternatively:
strings /usr/bin/awk | grep -E "\<version\>"
?--version
version 20110810 (FreeBSD)
In cases where RudiC's suggestions don't work, you can also try:
what /pathname/to/awk
or:
sccs what /pathname/to/awk
On some systems you might even get something useful from:
file /pathname/to/awk