Re: script or line command to change a line

From: Leyden, Joseph (LeydenJ_at_METRO.NET)
Date: 05/26/05

  • Next message: Holger.VanKoll_at_SWISSCOM.COM: "Re: script or line command to change a line"
    Date:         Thu, 26 May 2005 11:19:35 -0700
    To: aix-l@Princeton.EDU
    
    

    I'm not familiar with vi, ex, awk .... but
    basically I want a line change in a file.
     
    The old line is:
     
    maxage = 8
     
    to
     
    maxage = 0
     
    only from one user (say user oracle),
    in the /etc/security/users
     
    Looks like I have to find 'oracle' first and change
    the first occurence of 'maxage = 8'. (but I dont
    know how to do it)
     
    Can someone show me how this is done for free?
     
    Thanks,
    Joe


  • Next message: Holger.VanKoll_at_SWISSCOM.COM: "Re: script or line command to change a line"