1
1
I use the ack tool (like grep but more stronger) in order to match strings in files
Please take a look on the following ack example
./ack -a 127.0.0.1 /var/ntp/ntpstats/file
55305 57262.736 10.106.190.191 9624 0.000460 0.00127 0.00168
I want to search only the IP 127.0.0.1 in /var/ntp/ntpstats/file
but ack return the line:
55305 57262.736 10.106.190.191 9624 0.000460 0.00127 0.00168
So its seems that ack match the 127.0.0.1 but actually the line not have the address 127.0.0.1
Can someone give me advice how to match exactly with the ack tool? (maybe some missing flags after ack?)
thanks
ack is not stronger, it's weaker! :-) – Jonathan Hartley – 2012-02-27T14:25:47.320