Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Re: =?UTF-8?B?4oCcU3RhcmRhdGXigJ0=?= Version Numbering Followup-To: comp.lang.java.programmer Date: Wed, 08 Jun 2011 10:46:39 +1200 Organization: Geek Central Lines: 9 Message-ID: References: <4dee15eb$0$49174$e4fe514c@news.xs4all.nl> NNTP-Posting-Host: 118-92-86-36.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: lust.ihug.co.nz 1307486799 14863 118.92.86.36 (7 Jun 2011 22:46:39 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Tue, 7 Jun 2011 22:46:39 +0000 (UTC) User-Agent: KNode/4.4.11 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5075 In message <4dee15eb$0$49174$e4fe514c@news.xs4all.nl>, Silvio wrote: > What about date +%s%N Close. Try this version: doesn’t need Julian, and also shorter: sed -i -r 's/(android:versionName=\")[^\"]*(\")/\1'"$(bc <<<"scale = 1; ($(date +%s)) / 86400")"'\2/' AndroidManifest.xml