bash remove first n characters 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
Example 3: cut first 10 characters linux
tail -f logfile | grep org.springframework | cut -c 5-