I would like to delete all lines from my large text file which have more than one colon.
An explanation of how the code works would also be much appreciated.
Example:
yes:no:no
yes:no
yes:no
no:yes
yes:yes:no
What I want:
yes:no
yes:no
no:yes
So it deletes the first and last lines because they had more than 1 colon.