I use conEmu to have som kind of linux terminal in windows.
In Windows I configured a variable to open files with sublime, and I can open files with:
$subl path/filename
I have a virtualMachine and I have the same code, in local and in the virtual host, but the paths are different:
D:\work (in win)
/home/work/ (in the server)
If I do:
$ ssh work@10.10.10.10 'find . -type f -name example.txt'
I get: /home/work/public/example.txt
But I can't use it to open with sublime:
subl $(ssh work@10.10.10.10 'find /home/work -type f -name example.txt') //doesn't work
So I need to have only the path from the starting point of /home/work, and have only public/example.txt (or ./public/example)
And This is the question, how can I use find
to get the path from the starting point?
/home/work
to be stripped off? Or something more? Will Sublime understand/
or does it need\
in paths? – B Layer Dec 12 '17 at 17:05