Skip to content
Advertisement

Replace a line with a number if part of it is matches using sed

I know this is a very simple question and been discussed many times, but I can’t understand where I am doing wrong in my command.

I would like to replace the lines which starts with “It” as 99999. Each row starts with several blank spaces.

JavaScript

I used

JavaScript

But it is not working.

Advertisement

Answer

give this a try:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement