Data in file:1234567-56789073456789-12345633456789-1234567....nNow I want the output in the below format:1234567-5678907,3456789-1234563,3456789-1234563....nI have used below command but I am getting an extra comma in starting:awk -F- ' {printf ,%s-%s,$1,$1} END{print}'Please share the command that can be used in a shell script.
Need to obtain Awk output in specific sequence
shell script;text processing;awk