home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!seismo!darwin.sura.net!wupost!usc!sol.ctr.columbia.edu!eff!news.oc.com!convex!tchrist
- From: tchrist@convex.COM (Tom Christiansen)
- Newsgroups: comp.unix.questions
- Subject: Re: Bourne shell read command
- Message-ID: <1992Jul26.150322.21361@news.eng.convex.com>
- Date: 26 Jul 92 15:03:22 GMT
- References: <1992Jul24.213654.29656@cs.umb.edu> <1992Jul26.055745.5445@cs.umb.edu>
- Sender: usenet@news.eng.convex.com (news access account)
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- Organization: CONVEX Realtime Development, Colorado Springs, CO
- Lines: 20
- Originator: tchrist@pixel.convex.com
- Nntp-Posting-Host: pixel.convex.com
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
-
- From the keyboard of mzraly@cs.umb.edu (Michael S. Zraly):
- :Oh well, its simpler than I thought:
- :
- : # this DOES work
- : str=`grep "^$abbrev" $afile`
- : mac=`echo "$str" | awk '{ print $2 }'`
- : dir=`echo "$str" | awk '{ print $3 }'`
-
- Process pig. :-)
-
- set $str
- mac=$2
- dir=$3
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
-
- Emacs is a fine operating system, but I still prefer UNIX. -me
-