[BusyBox] Problem with grep
Rob Landley
rob at landley.net
Tue Jun 7 01:44:53 UTC 2005
On Monday 06 June 2005 07:41 am, Andreas 'ads' Scherbaum wrote:
> Hello,
>
> i got some trouble using the busybox grep:
>
> HA-Switch /etc/root # grep src /proc/net/ip_conntrack | wc -l
> 5
> HA-Switch /etc/root # cat /proc/net/ip_conntrack | wc -l
> 9
>
> Every line in /proc/net/ip_conntrack contains a string with "src" in it,
> but the grep does only find half of them.
My kernel hasn't got a /proc/net/ip_conntrack, so I can't reproduce this.
I take it it's not the data, but something funky about reading from a pipe?
(Probably getting short reads?)
I'm not reproducing this searching for things in /proc/pci...
Rob
More information about the busybox
mailing list