Suppose I have these in a file called test:
u001:x:comp111:mark_henry
u002:x:comp321:zack_mike
u003:x:comp132:chris_white
And I want to open that file go to the line that has chris_white
and change it to chris_brown
so it becomes u003:x:comp132:chris_brown
. I'm thinking to use the sed
command to do so but I'm not sure how.