How to copy last 5 lines of a log file to the clipboard