2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 6596
/ 2 Years ago, sun, january 16, 2022, 12:34:24
I have lines form a command output as given below.
service:clus1-svr clus1-node2 started [Z]
service:clus1-svr clus1-node2 started
I want to add string before and after the line which indicate [Z] only. So the result may come as:
<font>service:clus1-svr clus1-node2 started [Z]</font>
Can anyone please help me to do this. Your help greatly appreciated.
i tried below, but that changes all the line from the output
sed -i "s/.*/<font color="red">&</font>/"
More From » text-processing