Java : method to to print relative pathname?
- by HH
I am hesitant just to look at some env.vars and try to replace things with regexes. So is there a ready method to print relative pathnames system-independently?
$ echo ~
/u/user
$ pwd
/u/user/OH/one/src
$ echo "Like relative pathnames ~/OH/one/src, not /u/user/OH/one/src."