I have the following string and want to remove the first colon and all characters after the colon printable or non-printable if the file is binary.

```
/dir1/dir2/somefile.txt:09/15/2014 11:25:54 root:sometext:sometext:

```

to end up with

```
/dir1/dir2/somefile.txt

```