bug-cpio
[Top][All Lists]
Advanced

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

Re: [Bug-cpio] Table of Contents question...


From: Pavel Raiskup
Subject: Re: [Bug-cpio] Table of Contents question...
Date: Sun, 01 Feb 2015 09:19:05 +0100
User-agent: KMail/4.14.3 (Linux/3.17.8-300.fc21.x86_64; KDE/4.14.3; x86_64; ; )

On Thursday 29 of January 2015 16:51:42 Smith M-Brad - msmith wrote:
> I have executed two separate commands to extract a table of contents
> from a CPIO archive where the date/time field look as follows:
> 
> Jun  2  2014
> Aug 20 23:40

The fact that the second item is in future is correct?

> Is there some place that I can set some type of value, export something
> to give me a consistent output every time?

If you want something to adjust GNU cpio behavior, that is not possible.
Have a ook at the long_format function in source.

> Would be quite content with merely the date..
> Jun  2  2014
> Or better
> 2014-06-02

Then something like 'date' command from GNU coreutils could help:

  $ date --date "Jun  2  2014" +"%y-%m-%d"
  14-06-02
  $ date --date "Aug 20 23:40" +"%y-%m-%d"
  15-08-20

Pavel




reply via email to

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