mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-16 20:20:57 +01:00
26 lines
995 B
Plaintext
26 lines
995 B
Plaintext
# reading from file and matching with lowercase words
|
|
exec tablizer -c name,status -r testtable.txt
|
|
stdout grafana.*Runn
|
|
|
|
# matching mixed case
|
|
exec tablizer -c NAME,staTUS -r testtable.txt
|
|
stdout grafana.*Runn
|
|
|
|
# matching using numbers
|
|
exec tablizer -c 1,3 -r testtable.txt
|
|
stdout grafana.*Runn
|
|
|
|
# matching using regex
|
|
exec tablizer -c 'na.*,stat.' -r testtable.txt
|
|
stdout grafana.*Runn
|
|
|
|
|
|
# will be automatically created in work dir
|
|
-- testtable.txt --
|
|
NAME READY STATUS RESTARTS AGE
|
|
alertmanager-kube-prometheus-alertmanager-0 2/2 Running 35 (45m ago) 11d
|
|
grafana-fcc54cbc9-bk7s8 1/1 Running 17 (45m ago) 1d
|
|
kube-prometheus-blackbox-exporter-5d85b5d8f4-tskh7 1/1 Running 17 (45m ago) 1h44m
|
|
kube-prometheus-kube-state-metrics-b4cd9487-75p7f 1/1 Running 20 (45m ago) 45m
|
|
kube-prometheus-node-exporter-bfzpl 1/1 Running 17 (45m ago) 54s
|