I learn MongoDB and play around with databases. I often run database servers so I need to change the path to some DB a lot. I made a script for that
--dbpath <path_to_some_folder>/data/db
But I want my script to use a path to itself so I don't have to set <path_to_some_folder>
every time I copy the script to a different folder. How to use the path to the script as a part of a path to a db? Like that:
--dbpath <path_to_the_script_folder>/data/db