Re: Sed help

From: Raj Atwal (atwalrs@YAHOO.COM)
Date: Fri Oct 17 2003 - 16:18:52 EDT


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



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:17 EDT