Recently I found out a new very useful command. It is:
gnome-open
or
xdg-open
or just
open
on mac.
It opens file or directory in by default specified program.
But, in the event that I need to open a file in an already running redactor (I mean send the file to a running processes somehow) I have no solution. I wonder if there is any way to achieve that or if it is possible to write a script that can do that.
For example if I want to send it to an already running instance of eclipse.
Kind of drag-and-drop through commandline.