title: How to list public IPs of all compute instances in OCI?
body: <p>I need to get the public IPs of all instances of my OCI tenant.</p>
  <p>Here i saw a python scripts to do this from OCI Console Cloud Shell : <a href="https://medium.com/oracledevs/writing-python-scripts-to-run-from-the-oci-console-cloud-shell-a0be1091384c" rel="nofollow noreferrer">https://medium.com/oracledevs/writing-python-scripts-to-run-from-the-oci-console-cloud-shell-a0be1091384c</a></p>
  <p>But I want to create a bash script, that uses OCI CLI commands to fetch the required data.</p>
  <p>How can I achieve this using OCI CLI commands?</p>