home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!gmd.de!wittig
- From: wittig@gmd.de (Georg Wittig)
- Subject: Re: csh: escaping "{" and "}" in command substitution
- Message-ID: <wittig.713619394@gmd.de>
- Sender: news@gmd.de (USENET News)
- Nntp-Posting-Host: gmdzi
- Organization: GMD, Sankt Augustin, Germany
- References: <1992Aug11.202955.24144@afterlife.ncsc.mil>
- Date: Wed, 12 Aug 1992 11:36:34 GMT
- Lines: 16
-
- In <1992Aug11.202955.24144@afterlife.ncsc.mil> ahw@afterlife.ncsc.mil (Andrew White) writes:
-
- >foreach name ( names )
- > awk '$1 == /$name/ { print $3 }' somefile
- >end
-
- What about the following:
-
- foreach name ( names )
- awk '$1 == /'$name'/ { print $3 }' somefile
- end
- --
- Georg Wittig GMD-I8.IT Schloss Birlinghoven P. O. Box 1316 D-W-5205 Sankt Augustin 1 Germany
- email: Georg.Wittig@gmd.de telephone: (+49) 2241 14-2294
- ------------------------------------------------------------------------------
- "In the beginning was the word, but it wasn't a fixed number of bits."
-