How do I open a file my script generated with the default GUI editor with bash?

On OS X there is the command open, but as far as I know that doesn't exist on linux. What is a good cross-platform alternative?

(executing open somefile.ext on OS X does the same as if I double clicked the file in Finder).

Edit
Report