I have lines like these:name:surnamename2:surname2I would like to delete everything after :
How to delete everything afrer :
text processing
based on his comment how can I place them one behind other with , (coma) separated ?awk -F: '{printf(%s,,$1)}' input.txt