home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!uwm.edu!ogicse!news.u.washington.edu!carson.u.washington.edu!micah
- From: micah@carson.u.washington.edu (Micah Anderson)
- Newsgroups: comp.unix.shell
- Subject: setting the output of awk
- Summary: how do I set the variable that I select from awk to a shell variable?
- Keywords: awk, sh, bourne
- Message-ID: <1992Nov11.233112.10150@u.washington.edu>
- Date: 11 Nov 92 23:31:12 GMT
- Article-I.D.: u.1992Nov11.233112.10150
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington
- Lines: 9
-
- How can I set the variable I am selecting with awk to a shell variable??
- Or would this be better done in sed?
-
- for example:
-
- grep ^Subject: $MBOX|awk '{$2}'|=Subject
-
- I want to take the subject from my mail and ake it so I can act upon it
- within shell (|=Subject does not work, btw)
-