|As root, I was trying to get the location of the home directory of a given user ... seemed simple, but I can't get it.|
I try to put it into a variable, but I keep ending up with "~username" (without the double quotes) inside a variable, and when I then run an mkdir, it doesn't seem to parse the tilde, but it tries to create a directory explicitally like '~username/dubdir` ... and that does not work. I seem to understand that the parsing of tilde+username is done at certain levels only (file and directory manipulation commands), but why doesn't it work when I have a string that is exactly that, but in a variable ?
To summarize, I sort of have this:
And then I try : mkdir $variable1/subir
Second question is: what other way can I do this ?
edit : It's not an WindowsXp question, but *NIX