From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F4781376 for ; Mon, 16 May 2022 20:13:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97104C3411A; Mon, 16 May 2022 20:13:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652732028; bh=k/Cm/E4xWEUeNGgA2/1xf97UCGr4/HBsqqLaIesDpf8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=La/Prt5pq9zOhf9Aj0P8v7avGc51ESLbFSPxxj2esFMpg52hCJ4LjWknOQJMgemjj b1yky1VMtgkn+tQPh2L+4FuUhGghFOLnxSmIR8Je8vhWYmJkrzezxdKWI6u1KAVgQn Ojoev5Omc8Z0zPcy2IW8kKL90WlRR0vGF8Hh7aYj8UhB1uYeCU0YPfiOscuJir5lP+ xk9qJ/8jKIkwcRbbW70/XS2/7FvGnYLymkeT4mDq3kqZuAmw7HDyoFzU/HHB9B1BZY NjS48LCzDjzy9FcfgwtrFk3SQK7NmBah89tO/EEGANcPBXzJFcEwkL0RIZRaVTGWAK 0Kw39OaF9NvkQ== Date: Mon, 16 May 2022 13:13:46 -0700 From: Jakub Kicinski To: Mat Martineau Cc: netdev@vger.kernel.org, Geliang Tang , 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 Message-ID: <20220516131346.1f1f95d9@kernel.org> In-Reply-To: <20220514002115.725976-2-mathew.j.martineau@linux.intel.com> References: <20220514002115.725976-1-mathew.j.martineau@linux.intel.com> <20220514002115.725976-2-mathew.j.martineau@linux.intel.com> Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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?