rm screenlog;tail -n 200 screenlog.0 > screenlog; [download]
In reply to Mini bash script to perl by Anonymous Monk