How do I write a simple shell script (say script.sh), so that I can pass a URL as an argument while executing?
I want a browser to start with the page opened on that URL
In MacOS, just open works. So, open "$1" will open the passed URL in Chrome, if Chrome is the default browser.
open
open "$1"