How can I open a file in its default application from the command line?
For example if I have a file
foo.doc, can I type
command ./foo.doc into the CLI and have that file open in Word?
Note: on my linux machine, I would use
xdg-open but that doesn't work on my Mac.