I am looking for the most generic way to strip the leading frontslash
character from a string from within a shell script.
I know that this is easily done in bash by using this pattern matching
operator #.
example:
file="/home/user"
echo ${file#/}
the output in bash would be:
home/user
What is the most generic way to do this for all shell scripts?
Thanks in advance for a prompt reply.
Feel free to email me direct at chas@pcscs.com
Best regards,
Charles Wilkins