title: How to delete the first occurence of a bibtex entry using sed?
body: <p>I would like to delete the first occurrence of an entry in a<code>bibtex</code> file
  based on its id. For example, let's say we have this file:</p>
  
  <pre><code>@inproceedings{id1,
    author = "",
    title = "",
    ...
  }
  
  @inproceedings{id2,
    author = "",
    title = "",
    ...
  }
  
  @misc{id1,
    author = "",
    title = "",
    ...
  }
  </code></pre>
  
  <p>And I would like to delete the first entry containing <strong>id1</strong>, so the output I would like
  is:</p>
  
  <pre><code>@inproceedings{id2,
    author = "",
    title = "",
    ...
  }
  
  @misc{id1,
    author = "",
    title = "",
    ...
  }
  </code></pre>
  
  <p>I want an automated way to do this using <code>sed</code> preferably. Until now I have this:</p>
  
  <pre><code>sed '/^@.*{id1/, /}/d' input_file
  </code></pre>
  
  <p>But this deletes all the occurrences in the file. Can you help me to find a way
  to just delete the first one?</p>