Relevance help with embedded " "

(imported topic written by SystemAdmin)

I have a file on AIX /etc/rc.tcpip that has the following lines:

  1. Start up Network Time Protocol (NTP) daemon

start /usr/sbin/xntpd “$src_running” -x

or

  1. Start up Network Time Protocol (NTP) daemon

start /usr/sbin/xntpd “$src_running”

I need to check if the -x is missing from the end of the line:

start /usr/sbin/xntpd “$src_running”

Here is what I tried, but I think the embedded " " around the $src_running" is messing this up

Q: exists lines of file “/etc/rc.tcpip” whose ( it contains “start /usr/sbin/xntpd “$src_running” -x”)

E: This expression contained a character which is not allowed.

(imported comment written by SystemAdmin)

Hi,

Try -

exists lines whose (( it starts with “start /usr/sbin/xntpd”) and (it does not end with “-x”)) of file “/etc/rc.tcpip”

Mark.