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

前端 未结 6 1415
悲&欢浪女
悲&欢浪女 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:53

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

    would remove the first 900 characters

    cut uses 900- to show the 900th character to the end of the line

    however when I pipe all of this through grep I don't get anything

提交回复
热议问题