All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@tnetconsulting.net>
To: lartc@vger.kernel.org
Subject: Re: Route count
Date: Wed, 10 Feb 2021 16:53:57 +0000	[thread overview]
Message-ID: <d18d2dc2-b461-cde7-2188-259fd544988e@spamtrap.tnetconsulting.net> (raw)
In-Reply-To: <99dad522-5d1b-0d22-e215-9ee25e079ba3@spamtrap.tnetconsulting.net>

[-- Attachment #1: Type: text/plain, Size: 491 bytes --]

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


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4013 bytes --]

  parent reply	other threads:[~2021-02-10 16:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-08 17:10 Route count Grant Taylor
2021-02-10  8:11 ` Anton Danilov
2021-02-10 16:46 ` Grant Taylor
2021-02-10 16:53 ` Grant Taylor [this message]
2021-02-10 19:11 ` Jay Vosburgh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d18d2dc2-b461-cde7-2188-259fd544988e@spamtrap.tnetconsulting.net \
    --to=gtaylor@tnetconsulting.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.