Mr Jazz, it's been a long day for me to. My eye saw Sunday and Wednesday - Sorry!
As far as finding the last data file, I think this might do it:
#!/bin/ksh
ll > d.file
# strip out just the datafiles and find the largest of
# field 9
lastfile=`grep ckspc.out d.file|awk '
{
if($9 > lf)
lf=$9
} END { printf("%s\n", lf) } '`
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.