cut first 4 characters bash code example Example: cut first 10 characters linux tail -f logfile | grep org.springframework | cut -c 5-