title: Why does sed delete the wrong range of lines
body: <p>Im trying to write a script that deletes a certain range of lines using the sed command. I first printed out the lines.</p>
  <pre><code>    sed -n '482,486p' original.json
                  {
                      &quot;vlans&quot;: &quot;ALL&quot;,
                      &quot;hostname&quot;: &quot;hostname&quot;,
                      &quot;interface&quot;: &quot;interface&quot;
                  },
  </code></pre>
  <p>After confirming that those are the lines I executed the following code</p>
  <pre><code>sed '482,486d' original.json &gt; new.json
  </code></pre>
  <p>When I ran the diff command I got the following results</p>
  <pre><code>diff original.json new.json
  484,488d483
  &lt;                     &quot;hostname&quot;: &quot;hostname&quot;,
  &lt;                     &quot;interface&quot;: &quot;interface&quot;
  &lt;                 },
  &lt;                 {
  &lt;                     &quot;vlans&quot;: &quot;ALL&quot;,
  </code></pre>
  <p>My question is why was the range of lines from 484-448 deleted when I specified lines 482-486 to be deleted and how do I fix it. Any help would be appreciated</p>