Writing a bash script where I need to extract only dbpath from ps -eaf | grep [m]ongod. If dbpath in port 27017 is NOT mentioned in th
dbpath
ps -eaf | grep [m]ongod
port 27017