[URGENT]how to remove "../.." from a path
my path may contain ../../tmp/abc/xyz
HOw do i remove the leading ../..
So if the input is
../../aaa/bbb output should be /aaa/bbb
if input is
/var/gggg output should be /var/ggg
Why is this urgent?? Please be aware that this keeps some people from responding.
Where is the path statement that you want to change? If it is in a text document, then you can just open it with an editor.
Were you maybe referring to the PATH environment variable?
i got it. Thanks
You found out yourself, and you want to brag about it, but you don't care to tell the forum what you found and how you solved your problem.
That is considered extremely bad etiquette.
|All times are GMT -5. The time now is 07:01 AM.|