Yep i can see the benefit of proper indentation, but i think i should have left the original code example alone as i seem to have caused more problems.
No matter, my complete lack of scripting skills is at fault so your reply (apart from showing me proper indentation) was wasted.
But thanks for taking the time all the same

Update:
Actually the code example doesn't work. I tried it as is and manually entered the text along with doing //echo -a $ctime to get the time of the entry and although it does add the numbers to the start of each line it still outputs like this

1) test1 1929wks 6days 3hrs 22mins 32secs
2) test2 1929wks 6days 3hrs 22mins 33secs
3) test3 1929wks 6days 3hrs 22mins 35secs
4) test4 1929wks 6days 3hrs 22mins 36secs

Why it has 1929wks etc i have no idea, also the entries were added several minutes apart but shows only a second or two difference in the output.

Last edited by doh123; 27/12/06 03:32 AM.