Re: Route count

Grant Taylor <[email protected]> Wed, 10 Feb 2021 09:53:57 -0700
Newsgroups gmane.linux.network.routing
Organization TNet Consulting
Message-ID <[email protected]>
On 2/10/21 9:46 AM, Grant Taylor wrote:
> Now I just need to put together a simple script to parse 
> /proc/net/fib_triestat.  I suspect awk, or maybe even sed, will do quite 
> nicely.

sed -n '/Id 13:/,/^$/p' /proc/net/fib_triestat | sed -n '/Prefixes:/p' | 
sed 's/	Prefixes       //'

That's a tab before Prefixes and seven (7) spaces afterwards.

I'd like to have something more graceful.  But it's a start.

Thank you again Anton.



-- 
Grant. . . .
unix || die
smime.p7s (application/pkcs7-signature, 3.9 KB) - not displayed