I used this command but I am unable to print multiple values before each '.
'
This command is only printing the 192
of 192.168.113.2
. I want to print the rest as well in the same line.
sudo tcpdump -i 2 -c 20 -n | awk -F '>' '{print $2}' | awk -F ':' '{print $1}' | awk -F '.' '{print $1}'
Please help.