mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-16 20:20:57 +01:00
27 lines
853 B
Plaintext
27 lines
853 B
Plaintext
# reading from file and matching with lowercase words
|
|
exec tablizer -c name,status -r testtable.csv -s,
|
|
stdout grafana.*Runn
|
|
|
|
# matching mixed case
|
|
exec tablizer -c NAME,staTUS -r testtable.csv -s,
|
|
stdout grafana.*Runn
|
|
|
|
# matching using numbers
|
|
exec tablizer -c 1,3 -r testtable.csv -s,
|
|
stdout grafana.*Runn
|
|
|
|
# matching using regex
|
|
exec tablizer -c 'na.*,stat.' -r testtable.csv -s,
|
|
stdout grafana.*Runn
|
|
|
|
|
|
# will be automatically created in work dir
|
|
-- testtable.csv --
|
|
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
|
|
|