I have below n number of lines in a flat file:uk,1234560000uk,6789067000uk,4567890000...n linesNow I have to make it in below format:uk,1234560000-1234560000,6789067000-6789067000,4567890000-4567890000,......How can I do this transformation?
How to merge the lines in Unix (Sun Solaris) in a specific pattern
bash;text processing