home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3752 < prev    next >
Encoding:
Text File  |  1992-09-01  |  839 b   |  35 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!iWarp.intel.com|imutm1.de.intel.com!inews.Intel.COM!news
  3. From: brodesky@td2cad.intel.com (Michael Brodesky)
  4. Subject: Awk question
  5. Message-ID: <BtxLJ3.BzE@nntp-sc.Intel.COM>
  6. Sender: news@nntp-sc.Intel.COM (USENET News System)
  7. Nntp-Posting-Host: td2cad
  8. Organization: intel corporation
  9. Date: Wed, 2 Sep 1992 03:25:50 GMT
  10. Lines: 23
  11.  
  12.  
  13.  
  14. I would like to get the current year into my awk program. Any
  15. clues into doing this?
  16.  
  17. Do I need to 
  18. date |nawk -f code inputfile
  19.  
  20.  
  21. code
  22. {
  23. print $6
  24. }
  25.  
  26.  
  27. Only problem is it does not work.
  28.  
  29. MichaeL
  30. --
  31. Michael Brodesky Internet Mbrodesky@sc9.Intel.com
  32. UUCP : {pur-ee,qanad,oliveb,decwrl,hplabs}!intelca!mipos3!td2cad!brodesky
  33. Sally sold sea shells. Ned Needamyer needled his nose on the nose. 
  34. During the week I climb left to right. On weekends I climb up and down.
  35.