extract timestamp from a gzip file

Try this:

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

# with extended versions of dd resp. od:

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

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

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