Skip to main content
deleted 1 character in body
Source Link
Olivier Dulac
  • 6.6k
  • 1
  • 25
  • 42

If you insist of doing it in vim:

If you want to just delete the octals, and the following pipe, and nothing more: delete the first occurence of 3 0to7 digits between 2 pipes:

:70,77s/|[0-7]\|[01]\{3}|/|/ 

edit : updated according to the exemple given

If you insist of doing it in vim:

If you want to just delete the octals, and the following pipe, and nothing more: delete the first occurence of 3 0to7 digits between 2 pipes:

:70,77s/|[0-7]\{3}|/|/ 

edit : updated according to the exemple given

If you insist of doing it in vim:

If you want to just delete the octals, and the following pipe, and nothing more: delete the first occurence of 3 0to7 digits between 2 pipes:

:70,77s/|[01]\{3}|/|/ 

edit : updated according to the exemple given

Source Link
Olivier Dulac
  • 6.6k
  • 1
  • 25
  • 42

If you insist of doing it in vim:

If you want to just delete the octals, and the following pipe, and nothing more: delete the first occurence of 3 0to7 digits between 2 pipes:

:70,77s/|[0-7]\{3}|/|/ 

edit : updated according to the exemple given