Using a variable inside Sed expression for the command
<p>I'm trying to change few things in a file based on line numbers.</p>

<pre><code>sed -n -i "$command|ABC|XYZ" ".$file_name"
</code></pre>

<p>The command variable is going to take the values such as 200s,311s and so on</p>

<p>I'm getting "sed: -e expression #1, char 32: unterminated `s' command"</p>

<p>What could be going wrong?</p>