coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date enhancement - filter to preface each line of input with timesta


From: Stephane Chazelas
Subject: Re: date enhancement - filter to preface each line of input with timestamp
Date: Mon, 2 Nov 2015 21:44:38 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

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 <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]