tail n lines code example
Example 1: bash print last n lines of file
# Basic syntax:
tail -n input_file
# Where n is the number of lines to load from the end of the input_file
Example 2: tail 100 lines
tail -100 <log file> > newLogfile
# Basic syntax:
tail -n input_file
# Where n is the number of lines to load from the end of the input_file
tail -100 <log file> > newLogfile