> For the complete documentation index, see [llms.txt](https://cajac.gitbook.io/ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cajac.gitbook.io/ctf-notes/misc/text-processing/number-lines.md).

# Number lines

## cat

To number lines with `cat`

```bash
cat -n test.txt
```

## nl

To number lines with `nl`

```bash
nl test.txt
```

## Resources

cat - Linux manual page: <https://man7.org/linux/man-pages/man1/cat.1.html>

nl - Linux manual page: <https://man7.org/linux/man-pages/man1/nl.1.html>
