delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/07/14/10:34:24

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <20150714143415.18024.qmail@stuge.se>
Date: Tue, 14 Jul 2015 16:34:15 +0200
From: "Peter Stuge (peter AT stuge DOT se) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Cc: geda-developers AT lists DOT launchpad DOT net
Subject: Re: [geda-user] Re: geda-gaf on FreeBSD and probably other
architectures
Mail-Followup-To: geda-user AT delorie DOT com,
geda-developers AT lists DOT launchpad DOT net
References: <20150714103959 DOT GA17565 AT localhost DOT localdomain> <20150714140911 DOT GA18818 AT localhost DOT localdomain>
MIME-Version: 1.0
In-Reply-To: <20150714140911.GA18818@localhost.localdomain>
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com] wrote:
> I've written two scripts, one is combination of sed and awk:
> 
>   echo DATE_VERSION | sed 's/\(....\)\(..\)\(..\)/\1 \2 \3 00 00 00/' |
>                       LANG=C awk '{print (strftime ("%B %-d, %Y", mktime ($0)))}'
..
> Which would be better to use?

Does the awk program work also with GNU awk -c and/or awk on OS X and *BSD?

If yes, then awk is better.

Please roll the sed into the awk program. I'm happy to help if you like.


//Peter

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019