Re: Scripting Problem

From: Ed Wilts (ewilts_at_ewilts.org)
Date: 04/29/04

  • Next message: redhat: "Re: email problem"
    Date: Wed, 28 Apr 2004 22:09:14 -0500
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    

    On Wed, Apr 28, 2004 at 06:51:08PM -0700, redhat@chamkila.org wrote:
    > I have a file that contains a bunch of the following entries:
    >
    > trusty.F.0038 02/11/02
    > trusty.F.0058 04/11/04
    > trusty.F.0063 05/12/02
    > trusty.F.0064 05/13/02
    > trusty.F.0178 04/21/04
    > trusty.F.0183 09/30/02
    > trusty.F.0276 04/04/04
    > .....
    >
    > I would like to take out entries that match 04/xx/04 (xx does not matter)
    > and dump them to a different file. In this case 58, 178 and 276. I am
    > unable to do this with awk. Anyone know of a way I can do this using
    > csh??

    It's easily done with egrep.

    [ewilts@pe400 ewilts]$ egrep '.*04/../04' foo
    trusty.F.0058 04/11/04
    trusty.F.0178 04/21/04
    trusty.F.0276 04/04/04

    -- 
    Ed Wilts, Mounds View, MN, USA
    mailto:ewilts@ewilts.org
    Member #1, Red Hat Community Ambassador Program
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: redhat: "Re: email problem"

    Relevant Pages

    • Re: AWK sorting (maybe SED?)
      ... advanced than searching and selecting a single line, or a basic search ... I have a list of entries that looks something like the data below. ... These lists can be in any order...I just happened to select this one. ... Is there a way in awk to read the entries for "john" and put ...
      (comp.unix.aix)
    • Re: AWK sorting (maybe SED?)
      ... advanced than searching and selecting a single line, or a basic search ... I have a list of entries that looks something like the data below. ... These lists can be in any order...I just happened to select this one. ... Is there a way in awk to read the entries for "john" and put ...
      (comp.unix.aix)
    • /etc/paswd, Samba and Active Domain
      ... A bunch of entries in /etc/passwd of the form first.lastname, ... Note that the "x" makes this an account that you can't log in under. ... I have to add each user to smbpasswd throught the SWAT GUI because the ...
      (SunManagers)
    • AWK sorting (maybe SED?)
      ... I need some help with what I think may be possible in awk, ... advanced than searching and selecting a single line, or a basic search ... I have a list of entries that looks something like the data below. ... These lists can be in any order...I just happened to select this one. ...
      (comp.unix.aix)
    • Re: Moving WINS from 2000 to 2003
      ... Unless you have a bunch of static entries in WINS don't bother. ... mornig and startup their machines the new WINS's listing will populate ... > the DHCP scopes and statics to ...
      (microsoft.public.win2000.networking)