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