I'm trying to figure out how to pipe a filepath to the open command in TC Shell.
What I'm trying to do is, to pipe the outcome of "which" (to find the current location of another script) to the default text editor.
which testscript.pl | open -e which doesn't do anything.
which testscript.pl | open -f opens up the text editor but only displays the path and filename of the script in a new textfile, instead of displaying the file itself.
Anyone an idea of how to do that? I tried to google it, but didn't really find anything useful...
Thanks in advance.