From 9e2e45715edaa716708e4dd7b4aa95026d3cc853 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Tue, 7 May 2024 18:00:57 +0200 Subject: [PATCH] added -F docs --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 91a5714..351241e 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,17 @@ NAME(1) READY(2) STATUS(3) RESTARTS(4) AGE(5) repldepl-7bcd8d5b64-q2bf4 1/1 Running 1 (69m ago) 5h26m ``` +Sometimes a filter regex is to broad and you wish to filter only on a +particular column. This is possible using `-F`: +``` +% kubectl get pods | tablizer -n -Fname=2 +NAME READY STATUS RESTARTS AGE +repldepl-7bcd8d5b64-q2bf4 1/1 Running 1 (69m ago) 5h26m +``` + +Here we filtered the `NAME` column for `2`, which would have matched +otherwise on all rows. + There are more output modes like org-mode (orgtbl) and markdown. ## Demo