On 13 Apr 2002 08:33:44 PDT Mike Noyes wrote:
> Anyone, > Is there a way to get tar to return the date of the most recent file in > a tarball? > > Example: > $ tar tvzf leaf/devel/ddouthitt/packages/cal.lrp > -rwxr-xr-x root/root 9648 2001-12-17 06:42:08 usr/bin/cal > -rw-r--r-- root/root 32 2001-12-17 06:42:21 > var/lib/lrpkg/cal.list > > Desired output: 2001-12-17 If you can't get tar to tell you directly, tar tvfz $TARBALL_FILE \ | awk '{print $4}' \ | sort -n \ | tail -n 1 might work for you. --Brad _______________________________________________ Leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel