From: Jakub Kicinski <kuba@kernel.org>
To: Mat Martineau <mathew.j.martineau@linux.intel.com>
Cc: netdev@vger.kernel.org, Geliang Tang <geliang.tang@suse.com>,
davem@davemloft.net, pabeni@redhat.com, edumazet@google.com,
matthieu.baerts@tessares.net, mptcp@lists.linux.dev
Subject: Re: [PATCH net-next 1/3] selftests: mptcp: fix a mp_fail test warning
Date: Mon, 16 May 2022 13:13:46 -0700 [thread overview]
Message-ID: <20220516131346.1f1f95d9@kernel.org> (raw)
In-Reply-To: <20220514002115.725976-2-mathew.j.martineau@linux.intel.com>
On Fri, 13 May 2022 17:21:13 -0700 Mat Martineau wrote:
> tc -n $ns2 -j -s action show action pedit index 100 | \
> + grep "packets" | \
> sed 's/.*"packets":\([0-9]\+\),.*/\1/'
sed can do the grepping for you:
sed -n 's/.*"packets":\([0-9]\+\),.*/\1/p'
But really grepping JSON output seems weird. Why not use jq?
next prev parent reply other threads:[~2022-05-16 20:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-14 0:21 [PATCH net-next 0/3] mptcp: Updates for net-next Mat Martineau
2022-05-14 0:21 ` [PATCH net-next 1/3] selftests: mptcp: fix a mp_fail test warning Mat Martineau
2022-05-16 20:13 ` Jakub Kicinski [this message]
2022-05-17 7:01 ` Matthieu Baerts
2022-05-14 0:21 ` [PATCH net-next 2/3] Revert "mptcp: add data lock for sk timers" Mat Martineau
2022-05-14 0:21 ` [PATCH net-next 3/3] mptcp: sockopt: add TCP_DEFER_ACCEPT support Mat Martineau
2022-05-16 20:20 ` [PATCH net-next 0/3] mptcp: Updates for net-next patchwork-bot+netdevbpf
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=20220516131346.1f1f95d9@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=geliang.tang@suse.com \
--cc=mathew.j.martineau@linux.intel.com \
--cc=matthieu.baerts@tessares.net \
--cc=mptcp@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).