I have a grep that returns me a text file in the following format:
filename1.txt:14
filename1.txt:17
filename2.txt:10
I want to write a scripts so that I can generate a text in the following format:
filename1.txt 14 17
filename2.txt 10
How can I extract those numbers in bash?