From 526f3c1f5fcc205ea03b5fc1a594af37a3443ce9 Mon Sep 17 00:00:00 2001 From: "Sahdev P. Zala" Date: Wed, 3 Jan 2018 21:46:38 -0500 Subject: [PATCH] DocCommand: use regex wildcard The current command as such produces no output on mac term or bash shell. Using regex wildcard works fine on mac and linux. --- Documentation/op-guide/maintenance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/op-guide/maintenance.md b/Documentation/op-guide/maintenance.md index b513ba250..05c26bede 100644 --- a/Documentation/op-guide/maintenance.md +++ b/Documentation/op-guide/maintenance.md @@ -87,7 +87,7 @@ Removing excessive keyspace data and defragmenting the backend database will put ```sh # get current revision -$ rev=$(ETCDCTL_API=3 etcdctl --endpoints=:2379 endpoint status --write-out="json" | egrep -o '"revision":[0-9]*' | egrep -o '[0-9]*') +$ rev=$(ETCDCTL_API=3 etcdctl --endpoints=:2379 endpoint status --write-out="json" | egrep -o '"revision":[0-9]*' | egrep -o '[0-9].*') # compact away all old revisions $ ETCDCTL_API=3 etcdctl compact $rev compacted revision 1516