bash delete n first line code example
Example 1: bash delete first n characters of each line
# Basic syntax:
cut -c n- input_file
# Where
# - -c means "characters", as opposed to -f for "fields"
# - n is the number of characters to delete and n- means keep everything
# past the nth character. (-n would mean keep everything up to the
# nth character and just n means return the nth character)
Example 2: bash remove first character from line
sed 's/^.\{5\}//' logfile