i want to find a sequence numbers in a file(bash script),if anyone can give me a tip. I have a file with ip address
like.
172\.15.0.1
172\.15.0.6
172\.15.0.7
172\.15.0.8
172\.15.0.10
172\.15.0.15
172\.15.0.16
And i want to find lets say the 3 first sequence numbers
like this
172\.15.0.6
172\.15.0.7
172\.15.0.8
i tried with grep or sed or awk or loops but i couldn't find the results i want.