home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / shell / 4645 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  870 b 

  1. 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
  2. From: micah@carson.u.washington.edu (Micah Anderson)
  3. Newsgroups: comp.unix.shell
  4. Subject: setting the output of awk
  5. Summary: how do I set the variable that I select from awk to a shell variable?
  6. Keywords: awk, sh, bourne
  7. Message-ID: <1992Nov11.233112.10150@u.washington.edu>
  8. Date: 11 Nov 92 23:31:12 GMT
  9. Article-I.D.: u.1992Nov11.233112.10150
  10. Sender: news@u.washington.edu (USENET News System)
  11. Organization: University of Washington
  12. Lines: 9
  13.  
  14. How can I set the variable I am selecting with awk to a shell variable??
  15. Or would this be better done in sed?
  16.  
  17. for example:
  18.  
  19. grep ^Subject: $MBOX|awk '{$2}'|=Subject
  20.  
  21. I want to take the subject from my mail and ake it so I can act upon it
  22. within shell (|=Subject does not work, btw)
  23.