* tilde substitution
@ 1996-01-09 18:41 Gerencia do CI
0 siblings, 0 replies; only message in thread
From: Gerencia do CI @ 1996-01-09 18:41 UTC (permalink / raw)
To: tru64-unix-managers
Fellows,
I'm having some trouble with the tilde substitution within a script.
I need to use it to find out the home directory of a user, but the
username is passed to my script as a variable. Here's the problem:
#!/bin/ksh
# Actually, the variable below is set by another program:
usuario="snoopy"
# I'd like the command below to return, say, /usr/users/snoopy
# but it doesn't...
echo ~$usuario
--------------------------------------------------------------------
I tried many (weird) :) combinations of ` ` and " ", but without
success... Can someone point me the way?
Thanks!
Henrique Avila Vianna
snoopy@ufpel.tche.br
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-01-09 18:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-09 18:41 tilde substitution Gerencia do CI
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox