Getting the home directory for a user in the bourne shell

From: Christopher Knorr <cknorr_at_hops.com>
Date: Fri, 24 Jul 1998 11:07:52 -0400

A question for shell experts:

I'm modifying a bourne shell script and need to do the equivalent of a "~"
(tilde) in
the C-shell to get the home directory of a particular user. The bourne
shell doesn't
seem to recognize a command like:

ls -l ~cknorr

Is there an equivalent way to do this in the bourne shell?

Many thanks!

Chris
Received on Fri Jul 24 1998 - 15:10:55 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT