Results 1 to 5 of 5

Thread: GNU Awk: This is Not Your Father's Awk

  1. #1
    Join Date
    Sep 2006
    Beans
    7,635
    Distro
    Lubuntu Development Release

    GNU Awk: This is Not Your Father's Awk

    Here is a nice article about gawk:

    http://www.drdobbs.com/open-source/g...-awk/240158351

    Ubuntu seems to run mawk, I would have expected it to include gawk instead.

  2. #2
    Join Date
    Jun 2006
    Location
    Brisbane Australia
    Beans
    713

    Re: GNU Awk: This is Not Your Father's Awk

    I've been around a while and long ago did a lot of awk programming but I can't see the point of it anymore with languages like python available.

    I still do a lot of shell programming (i.e. including sed etc) but for anything getting beyond that I jump straight to python.

  3. #3
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,906
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GNU Awk: This is Not Your Father's Awk

    Hi Lars Noodén.

    Great article. Thanks!

    Just to be a little more precise (without knowing the actual packaging decisions), Ubuntu used to use gawk: 10.04 did, and 10.04 Server Edition still actually does.

    Server 10.04:
    Code:
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 10.04.4 LTS
    Release:	10.04
    Codename:	lucid
    
    $ awk --version
    GNU Awk 3.1.6
    Copyright (C) 1989, 1991-2007 Free Software Foundation.
    ...
    Desktop 12.04:
    Code:
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 12.04.2 LTS
    Release:	12.04
    Codename:	precise
    
    $ awk -W version
    mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan
    
    compiled limits:
    max NF             32767
    sprintf buffer      2040
    In any case, the mighty gawk is available for installation packaged as 'gawk'. Version 3.1.8 is available on the repositories, and there's a couple of ppa for 4+ versions (https://launchpad.net/~dns/+archive/gnu and https://launchpad.net/~schot/+archive/gawk).

    Thanks again for the heads up
    Kind Regards.

  4. #4
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: GNU Awk: This is Not Your Father's Awk

    How mawkish.

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: GNU Awk: This is Not Your Father's Awk

    Heh, Wheezy uses GNU Awk 4.0.1
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •