Remove All After Colon
This one-liner uses the cut command to removing everything on a line after the occurrence of a colon.
cut -f1 -d ":" file.txt > newfile.txtLast updated
This one-liner uses the cut command to removing everything on a line after the occurrence of a colon.
cut -f1 -d ":" file.txt > newfile.txtLast updated