Re: Sed help

From: Raj Atwal (atwalrs_at_YAHOO.COM)
Date: 10/17/03

  • Next message: Green, Simon: "Re: SPECIAL NOTICE: Technical Support Bulletin - Changing to Wint er Time"
    Date:         Fri, 17 Oct 2003 13:18:52 -0700
    To: aix-l@Princeton.EDU
    
    

    Thanks David, that works great!
     
    Raj

    "Taylor, David" <DTaylor@WBMI.COM> wrote:

    There’s probably a lot neater way but, this should work

     

    sed s[‘#start /usr/sbin/xntpd "$src_running"’[‘start /usr/sbin/xntpd "$src_running"’[g

     

     

    HTH

     

    David

    -----Original Message-----
    From: Raj Atwal [mailto:atwalrs@YAHOO.COM]
    Sent: Friday, October 17, 2003 2:51 PM
    To: aix-l@Princeton.EDU
    Subject: Sed help

     

    Sed being one of my weaker skills I am hoping one of you sed gurus can help me accomplish something...

     

    I am trying to script a way to search the file /etc/rc.tcpip and if it finds the following string

     

    #start /usr/sbin/xntpd "$src_running"

     

    to uncomment the line so it looks like

     

    start /usr/sbin/xntpd "$src_running"

     

    Any help would be appreciated.

     

    TIA

     

    Raj Atwal

     

    ---------------------------------

    Do you Yahoo!?
    The New Yahoo! Shopping - with improved product search

    **********************************************************************
    This email and any files transmitted with it are confidential and
    intended solely for the use of the individual or entity to whom they
    are addressed. If you have received this email in error please notify
    the system manager.

    This footnote also confirms that this email message has been swept by
    MIMEsweeper for the presence of computer viruses.

    www.mimesweeper.com
    **********************************************************************

    ______________________________
    Raj Atwal
    Senior Systems Consultant
    Braegen Group
    Toronto, ON, Canada
    (416) 366 6363
    ______________________________

    ---------------------------------
    Do you Yahoo!?
    The New Yahoo! Shopping - with improved product search


  • Next message: Green, Simon: "Re: SPECIAL NOTICE: Technical Support Bulletin - Changing to Wint er Time"

    Relevant Pages

    • Re: Sed help
      ... David ... Sed being one of my weaker skills I am hoping one of you sed gurus can ... Do you Yahoo!? ... text%2Csec%3Amail> - with improved product search ...
      (AIX-L)
    • Re: [Full-disclosure] Standalone PC Lockdown
      ... Shopping ... > Find Great Deals on Holiday Gifts at Yahoo! ... > Full-Disclosure - We believe in it. ... > Charter: http://lists.grok.org.uk/full-disclosure-charter.html ...
      (Full-Disclosure)
    • Re: FC4 - How can I listen to radio stations?
      ... > To unsubscribe: ... Shopping ... > Find Great Deals on Holiday Gifts at Yahoo! ...
      (Fedora)
    • Re: Its a question of ethics
      ... > Now you see that organization is posting the posting the position you ... > I thought I would like to post a message on the list stating that if ... Shopping ... > Find Great Deals on Holiday Gifts at Yahoo! ...
      (bit.listserv.ibm-main)
    • RE: How to View Data of Temporary Table
      ... Shopping ... Find Great Deals on Holiday Gifts at Yahoo! ... This message is sent in strict confidence for the addressee only. ...
      (comp.databases.informix)