awk and shell question
Chuck Karish
karish at forel.stanford.edu
Mon Sep 18 00:09:45 AEST 1989
In article <1163 at ispi.UUCP> jbayer at ispi.UUCP (Jonathan Bayer) wrote:
<LOGNAME=`who am i | awk '{
< logname=$1
< print logname
< }'`
<
<a=" awk -F: '\$1 == \"$LOGNAME\" {
< user=\$5;
< print user
< }'"
<USER=`cat /etc/passwd | $a`
USER=`cat /etc/passwd | eval $a`
Chuck Karish karish at mindcraft.com
(415) 493-9000 karish at forel.stanford.edu
More information about the Comp.unix.wizards
mailing list