I have a file as fololows:
1:01
4:04
7:07
5:05
3:03
The general pattern is <a number>:0<the same number before colon>
. I would like to remove the colon and everything after the colon. This would produce.
1
4
7
5
3
What would be an easy way to acheive this in bash or python.