home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!infoserv!incc!jerry
- From: jerry@incc.com (Jerry Rocteur)
- Newsgroups: comp.unix.shell
- Subject: Re: Awk question
- Summary: awk getline function
- Message-ID: <119.30995@incc.com>
- Date: 2 Sep 92 18:32:06 GMT
- References: <BtxLJ3.BzE@nntp-sc.Intel.COM>
- Organization: InCC.com Perwez Belgium
- Lines: 20
-
- In article <BtxLJ3.BzE@nntp-sc.Intel.COM>, brodesky@td2cad.intel.com (Michael Brodesky) writes:
- >
- >
- > I would like to get the current year into my awk program. Any
- > clues into doing this?
- >
- awk ' BEGIN { "date +%y" | getline da}'
-
-
- da now contains the output from your date program.
-
- Look at your manual for date to see what your options are??
-
- --
- __^__ __^__
- ( ___ )------------------------------------------------------------( ___ )
- | / | Jerry Rocteur Email: jerry@InCC.COM | \ |
- |___| Independent Computer Consultants |___|
- (_____)------------------------------------------------------------(_____)
- ^ ^
-