Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

tailing file ?

 [1/4] from: youpi::technologies::wanadoo::fr at: 22-Sep-2000 13:00


Would like to do an equivalent of tail function of Unix under Windows. Is there any straight way to do that easily in Rebol ? I hope to contribute more efficiently in rebol list in a few month when I will know rebol better. Thanks.

 [2/4] from: al:bri:xtra at: 23-Sep-2000 9:43


> Would like to do an equivalent of tail function of Unix under Windows. Is
there any straight way to do that easily in Rebol? Can you describe what the tail function does please?
> I hope to contribute more efficiently in rebol list in a few month when I
will know rebol better. Welcome to the list! Andrew Martin ICQ: 26227169 http://members.ncbi.com/AndrewMartin/ http://members.xoom.com/AndrewMartin/

 [3/4] from: jelinem1:nationwide at: 22-Sep-2000 16:59


If the file is small enough to read it all into memory the solution is too simple. Due to the nature of why one uses tail in the first place, though, that scenario is too good to be true. What you would have to do is open a port on the file, go to the end of the file (would 'tail work for file positioning?) then backup, counting eol characters (or char sequences). Not real slick when you have to code it for the first time, but add this to your dialect and voila! you have a REBOL easy-to-use UNIX tail. After you've written it, send it to me so I'll have it, too. :) - Michael Jelinek BTW, UNIX tail displays the last x lines of a file to the screen (standard out). [youpi--technologies--wanadoo--fr] on 09/22/2000 06:00:47 AM From: [youpi--technologies--wanadoo--fr] on 09/22/2000 06:00 AM Please respond to [list--rebol--com] To: [list--rebol--com] cc: Subject: [REBOL] tailing file ? Would like to do an equivalent of tail function of Unix under Windows. Is there any straight way to do that easily in Rebol ? I hope to contribute more efficiently in rebol list in a few month when I will know rebol better. Thanks.

 [4/4] from: jsc:dataheaven at: 23-Sep-2000 0:08


tail is a UNIX-program that shows the last lines of a file. You can use it also to incrementally show the growing output of a log-file. But... what I not understand is why we should have such a tool written in REBOL??? Is the original not good enough? Am Fre, 22 Sep 2000 schrieben Sie: