getAbsPath 1.4 review
DownloadgetAbsPath is a C header (getAbsPath.h) or an ANSI C tool (getAbsPath) which converts relative unix/win32 pathes to absolute ones.
|
|
getAbsPath is a C header (getAbsPath.h) or an ANSI C tool (getAbsPath) which converts relative unix/win32 pathes to absolute ones.
getAbsPath uses current working directory (CWD) as basis. Use it e.g. for finding out the current path of a shell script.
EXAMPLE:
find out the current path of a script, using the $0 and the ` pwd` command
#!/bin/bash
PWD=`pwd`
RelPath="../../../testdir"
GAP=`./getAbsPath $PWD $0`
echo $GAP
exit 0
getAbsPath 1.4 keywords