last 10 records in a log file tail code example Example: tail 100 lines tail -100 <log file> > newLogfile