I am doing:
egrep -e "String" -in -A 2 file1.log
I am getting output as
111:some text
112-some text
113-some text
How to replace ^'[0-9]{1,9}-' to ^'[0-9]{1,9}:' for each line number at start of each line in a file? So that it will look like:
111:some text
112:some text
113:some text