title: Sed command not working in sun solaris machine
body: <p>I have an xml file in which I am searching for the below pattern.</p>
  
  <pre><code>&lt;ServiceConfig Id="554"&gt;
  &lt;Comment&gt;ECS_OCS_V1_0.0.0.7.32251@3gpp.org&lt;/Comment&gt;
  &lt;MaxCost&gt;0.000000&lt;/MaxCost&gt;
  &lt;MaxCostLocalCurrency&gt;true&lt;/MaxCostLocalCurrency&gt;
  &lt;Atomic&gt;false&lt;/Atomic&gt;
  &lt;TariffSwitchHandling&gt;external&lt;/TariffSwitchHandling&gt;
  &lt;CdrAtTollFreeService&gt;false&lt;/CdrAtTollFreeService&gt;
  &lt;BonusDuringSession&gt;false&lt;/BonusDuringSession&gt;
  &lt;UserMessagesStartOfSession&gt;true&lt;/UserMessagesStartOfSession&gt;
  &lt;UserMessagesDuringSession&gt;true&lt;/UserMessagesDuringSession&gt;
  &lt;UseAccumulatorStartValues&gt;false&lt;/UseAccumulatorStartValues&gt;
  &lt;ValidityTime Factor="1"&gt;120&lt;/ValidityTime&gt;
  &lt;Volume&gt;
  &lt;Total PreferredFactor="1024" Preferred="500" MinimumFactor="1000000" Minimum="0"&gt;&lt;/Total&gt;
  &lt;/Volume&gt;
  &lt;VolumeQuotaThreshold Factor="1"&gt;0&lt;/VolumeQuotaThreshold&gt;
  &lt;SendQuotaHoldingTime&gt;false&lt;/SendQuotaHoldingTime&gt;
  &lt;QuotaHoldingTime Factor="1"&gt;0&lt;/QuotaHoldingTime&gt;
  &lt;SendQuotaConsumptionTime&gt;false&lt;/SendQuotaConsumptionTime&gt;
  &lt;QuotaConsumptionTime Factor="1"&gt;0&lt;/QuotaConsumptionTime&gt;
  &lt;/ServiceConfig&gt;
  </code></pre>
  
  <p>Block having open &amp; close tags as "ServiceConfig" &amp; in which comment tag has the "ECS_OCS_V1_0.0.0.7" string. for this purpose I used the below sed command.</p>
  
  <pre><code>sed -n '/&lt;ServiceConfig Id=/ { :a /&lt;\/ServiceConfig/! { N; ba; }; /&lt;Comment&gt;ECS_OCS_V1_0.0.0.7./ { p; b; }; }' ServiceConfig.xml
  </code></pre>
  
  <p>This command is working perfectly on linux system but failing on sunOS with below error.</p>
  
  <pre><code>Label too long: /&lt;ServiceConfig Id=/ { :a /&lt;\/ServiceConfig/! { N; ba; }; /&lt;Comment&gt;ECS_OCS_V1_0.0.0.7./ { p; b; }; }
  </code></pre>
  
  <p>I am not able to understand what is the cause of this trouble.</p>