convert a dos path to unix path 

>worst case I can only use the bourne shell
 >TRIM_PATH=`echo $1 | tr '\\' '/'`
...
 > Echo is the only command I can
 >think of to pipe the data into something like sed or tr. But I don't want to
 >assume that the system the script runs on will have /usr/ucb/echo.

Well, there's always here documents:

TRIM_PATH=`tr '\\\\' '/' <<END
$1
END`

here doc can have substitution, as "" does!

documented on: 02-26-99 01:00:58