2015-11-02 14:14:38 -0700, Eric Blake: > On 11/02/2015 01:56 PM, Shawn McMahon wrote: > > On Mon, Nov 2, 2015 at 3:52 PM, Evan Rempel <[email protected]> wrote: > > > >> > >> The task is easy to solve in nearly any language, but I can not depend on > >> awk, perl, python, tcl, java or any other interpreter to be available in > >> all of the enviroments > > perl, python, tcl, java, and many other interpreters are not in POSIX, > so you are correct that you cannot rely on them being present on all > systems. But awk IS required by POSIX, and is quite portably present in > practice (although you have to use a common subset of features, as not > all awks are the same). [...]
awk is POSIX, but not the strftime() function discussed here which is specific to GNU awk. For portability here for this problem in scripts, perl is your best bet. -- Stephane
