EnglishFrenchSpanish

OnWorks favicon

revpath - Online in the Cloud

Run revpath in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command revpath that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


revpath - generate a relative path that can be used to undo a change-directory

SYNOPSIS


revpath path

DESCRIPTION


The revpath program prints out a relative path that is the ``reverse'' or ``inverse'' of
path. Start with two directories top and bottom, with the latter below the former, and
path is the location of bottom relative to top. The output of revpath is the location of
top relative to bottom. The resulting path contains a trailing `/' character when the
result is non-trivial. If path is equivalent to `.', the resulting output is empty. If
path is invalid in some way (e.g., doesn't represent the path to a subdirectory) the
output is also empty and no error messages are ever generated.

DIAGNOSTICS


There are no diagnostics. Error conditions are silently ignored, and the exit status is
always 0.

Use revpath online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

Linux commands

Ad