I have something like this:
Arena Gig1/46 Gig1/0/49
CUCMS4 Gig7/35 eth0
SALUD-3750-P1R4v-dis
Gig1/7 Gig1/0/12
CUCMS5 Gig7/33 eth0
EMMA_6 Gig1/36 Gig1/0/49
I need an exit like this:
Arena Gig1/46 Gig1/0/49
CUCMS4 Gig7/35 eth0
SALUD-3750-P1R4v-dis Gig1/7 Gig1/0/12
CUCMS5 Gig7/33 eth0
EMMA_6 Gig1/36 Gig1/0/49
I tried this command but it does not delete the line break:
awk -F, '{gsub("\n","",$1); print}' archivo.txt