At 4/3/01 06:03 PM +0200, you wrote:
>I'm trying to do a little shell script and I have a list of files
>on which I have to do an operation. I'ld like to get the mtime
>for each of the files but can't figure out how to do it.
It would take me awhile to figure out how to code this since I'm pretty wet
behind the ears, but assuming your list of $FILE includes full paths...
=====
if [ -x outfile.txt ]
rm outfile.txt
fi
for $FILE in $LIST; do
$OUT = use ls to get file listing | use cut to get mtime
echo $FILE" "$OUT >> outfile.txt
done
=====
By the way, if I want to use $LIST = 1,2,3...50 how do I write that?
--
Rodolfo J. Paiz
[EMAIL PROTECTED]
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list