Hello list-

I need to tie a php script into some comand line stuff.

I have some log files that I am working with, and need to manipulate them.
 Do you have any suggestions on the best ways to:

1) Truncate a log file to a specific number of lines so that lines from
the beginning of the file are deleted until the specified number of lines
remain.

2) Split a log file into 2 files so that a certain number of lines are
removed from the primary file and dumped into a secondary file

Thank you-

duncan

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list