SED command to replace string after occurrence of a character – CentOS
I am trying to run the following command of sed : echo "fOO:paSS,tesT2:fail,TESt:pasS,fdfdhfd:pass,test5:anyresult test,test6:pass asfas " | sed 's/:.*/L&/;s/w+/u&/g;s/:/ # /g;y/,/n/' | sed 's/w+/&n/2;P;d' The output which I am getting is : FOO # Pass TesT2 # Fail Test #…