tcpdump with each line number?

Hi all,

First of all, thanks for providing the platform so all of us can learn and ask question if there is any doubt about unix/linux system.

This is my first time here and I would like to know what is the correct switch/option in order to capture tcpdump with line number at the beginning of each packet line.

As example,
if we use tcpdump -n, we'll get this kind of output

TCPDUMP - The Easy Tutorial

I was wondering is there any way to make it like this?

Any advise would be highly appreciated. Thanks in advance :slight_smile:

tcpdump -n | awk '{print NR". "$0}'

Didn't test it.