Writing a bash script where I connect to mongo-shell. I have the following output for rs.status(). I have to wait for one of the members to change the value of
rs.status()