I have a shell script that accepts directory inputs. One of the directories I want to process is at a remote location. I am able to ssh into the remote host but I want to be able to reference the remote directory in a similar manner as a UNC path on Windows (in Windows you can type "\[remote host][share]" and reference that path in batch files). Is there a clean way to do a similar thing with ssh on Unix? When I call the shell script, I want to be able to type something like:
./run_shell_script.sh ssh://<host>/<path>
instead of running extra commands just to process that one directory? This is being done on a list of directories in a loop, so I don't want to have special code for remote directories.