I'm trying to create a program in regular C that goes through an input file, finds all the lines that fulfill a command, and outputs the number of said fulfillments. I've tried using scanf(), but it is overly complicated for what seems to be a simple task. The example is a line like this:
13:27:05.194554 IP 128.238.55.12.58198 > 171.64.75.169.8431:
and I need to find how many source (left) ip's in a large file have 128.238.x.y and the last byte odd.
C code question
Moderator: Moderators
C code question
Shhh! I'm not officially back yet.