Soldato
- Joined
- 8 Oct 2008
- Posts
- 2,688
- Location
- Hull, East Yorkshire
How do I delete part of a line of texts?
Example
del 2020bbh : 030-c3.c3 (1048576 bytes) - NOT FOUND (2020bb)
del 2020bbh : 030-c4.c4 (1048576 bytes) - NOT FOUND (2020bb)
del 3countb : 043-p1.p1 (1048576 bytes) - NOT FOUND
I need to delete everything on the right after the colon. I have thousands of lines of text that I need to use for a batch script, deleting them manually would take me forever.
I have a big suprise for the first person with the solution!
Example
del 2020bbh : 030-c3.c3 (1048576 bytes) - NOT FOUND (2020bb)
del 2020bbh : 030-c4.c4 (1048576 bytes) - NOT FOUND (2020bb)
del 3countb : 043-p1.p1 (1048576 bytes) - NOT FOUND
I need to delete everything on the right after the colon. I have thousands of lines of text that I need to use for a batch script, deleting them manually would take me forever.
I have a big suprise for the first person with the solution!