2 deleted 10 characters in body; edited tags
source | link

I'm trying to find how to replace text in the following format:

input1:input2:input3
aaa:bbb:ccc
111:222:333

I would like the result to look like:

input1:new-text:input3
aaa:new-text:ccc
111:new-text:333

It can be accomplished via sed, awk, cut or what ever as long as the result is good.

Thanks

I'm trying to find how to replace text in the following format:

input1:input2:input3
aaa:bbb:ccc
111:222:333

I would like the result to look like:

input1:new-text:input3
aaa:new-text:ccc
111:new-text:333

It can be accomplished via sed, awk, cut or what ever as long as the result is good.

Thanks

I'm trying to find how to replace text in the following format:

input1:input2:input3
aaa:bbb:ccc
111:222:333

I would like the result to look like:

input1:new-text:input3
aaa:new-text:ccc
111:new-text:333

It can be accomplished via sed, awk, cut or what ever as long as the result is good.

1
source | link

Use sed or awk to replace text between column

I'm trying to find how to replace text in the following format:

input1:input2:input3
aaa:bbb:ccc
111:222:333

I would like the result to look like:

input1:new-text:input3
aaa:new-text:ccc
111:new-text:333

It can be accomplished via sed, awk, cut or what ever as long as the result is good.

Thanks