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 possible, I'd like to use (find leaf/ -iname "*.lrp") in a loop
(for/while) of some kind.
I thought I would ask this time. I needlessly wasted five hours trying
to sort the packages-list.txt file manually. Charles provided this shell
script that performed the task in a few seconds.
#! /bin/bash
find leaf/ -iname "*.lrp" |
while read file ; do
echo `basename $file`" : $file";
done |
sort
I used the sed line below on the file after it was generated to create
the current pacakages-list.txt file.
$ sed -e 's/leaf\//http\:\/\/leaf-project\.org\//g' packages-list.txt >
packages.txt
--
Mike Noyes <[EMAIL PROTECTED]>
http://sourceforge.net/users/mhnoyes/
http://leaf-project.org/
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel