What is a unix command for deleting the first N characters of a line?

前端 未结 6 1411
悲&欢浪女
悲&欢浪女 2020-11-30 17:27

For example, I might want to:

tail -f logfile | grep org.springframework | 

I was thinking that

6条回答
  •  情歌与酒
    2020-11-30 17:52

    Use cut. Eg. to strip the first 4 characters of each line (i.e. start on the 5th char):

    tail -f logfile | grep org.springframework | cut -c 5-
    

提交回复
热议问题