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

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!unislc!livings
  3. From: livings@unislc.uucp (Ross Livingston)
  4. Subject: Re: Awk question
  5. X-Newsreader: Tin 1.1 PL5
  6. References: <BtxLJ3.BzE@nntp-sc.Intel.COM>
  7. Message-ID: <1992Sep2.140738.29580@unislc.uucp>
  8. Organization: Unisys Corporation SLC
  9. Date: Wed, 2 Sep 1992 14:07:38 GMT
  10. Lines: 12
  11.  
  12. Michael Brodesky (brodesky@td2cad.intel.com) wrote:
  13. : I would like to get the current year into my awk program. Any
  14. : clues into doing this?
  15.  
  16. "date | awk '{print $6}'" works on SVR4.  So does "date +%Y".
  17.  
  18. -- 
  19. Ross Livingston, Unisys Corp.  |  Phone   (801) 594-6217
  20. 322 North  2200 West,   D1V03  |  Fax     801-594-4861 / 801-594-6708
  21. Salt Lake City, UT   84116     |  E-Mail  livings@unislc.slc.unisys.com
  22.