> For the complete documentation index, see [llms.txt](https://wiki.smhuda.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.smhuda.com/pentesting/tool-usage/remove-all-after-colon.md).

# Remove All After Colon

This one-liner uses the cut command to removing everything on a line after occurence of a colon. A similar command can be used for another use case of another character, alphabet or numeric character.

```
cut -f1 -d ":" file.txt > newfile.txt
```
