John, Sorry, I read the original question to mean "how can I truncate a dataset to the last n lines".
In any case, I agree with your earlier post - if you really want it to only *ever* keep the last n lines, then an wrap-around RRDS is the way to go (if you can change the program). Kirk On Jan 29, 2008 3:35 PM, McKown, John <[EMAIL PROTECTED]> wrote: > And none of these relate to the original post. The OP wanted a automatic > way to have a file wrap around after "n" writes. He did not want a way > to write >"n" entries to the file and then later only see the last "n" > entries in the file. He wanted the "n+1" write to be written as the > first record on the file, "n+2" to be the second, and so on. There is > basically no way to get what the OP wanted without changing his program, > which he indicated is not an option. > > -- > John McKown > Senior Systems Programmer > HealthMarkets > Keeping the Promise of Affordable Coverage > Administrative Services Group > Information Technology > > The information contained in this e-mail message may be privileged > and/or confidential. It is for intended addressee(s) only. If you are > not the intended recipient, you are hereby notified that any disclosure, > reproduction, distribution or other use of this communication is > strictly prohibited and could, in certain circumstances, be a criminal > offense. If you have received this e-mail in error, please notify the > sender by reply and delete this message without copying or disclosing > it. > > ---------------------------------------------------------------------- > > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html