extract timestamp from a gzip file

Try this:

$ <foo.gz dd bs=4 skip=1 count=1 | od -t d4
0000000 1036139973
0000004

# with extended versions of dd resp. od:

$ <foo.gz dd bs=4 skip=1 count=1 status=none | od ---format=d4 --address-radix=n
1036139973

How to display a human readable time stamp from the one extracted?


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.