This file is indexed.

/usr/share/doc/refdb/refdb-manual/ch08s03.html is in refdb-doc 1.0.2-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Delete references</title><link rel="stylesheet" type="text/css" href="manual.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="RefDB handbook" /><link rel="up" href="ch08.html" title="Chapter 8. Reference management" /><link rel="prev" href="ch08s02.html" title="Find and view references" /><link rel="next" href="ch08s04.html" title="Edit references" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Delete references</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch08s02.html">Prev</a> </td><th width="60%" align="center">Chapter 8. Reference management</th><td width="20%" align="right"> <a accesskey="n" href="ch08s04.html">Next</a></td></tr></table><hr /></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp66638144"></a>Delete references</h2></div></div></div><p>The <a class="link" href="re11.html#app-c-command-deleteref" title="deleteref">deleteref</a> command accepts one or more reference IDs as its argument to specify the references you want to get rid of. This is quite straightforward if you want to delete one or two references. But what if you have a disjoint list of 17 references, e.g. all publications of an author who was convicted to be fraudulent? A useful strategy to delete such references is to save a query with the <a class="link" href="re11.html#app-c-command-getref" title="getref"><span class="command"><strong>getref</strong></span></a> command to a file and use it as a list of ID values for a subsequent run of <a class="link" href="re11.html#app-c-command-deleteref" title="deleteref">deleteref</a>. This way you can verify by inspecting the file that you will delete the correct references. Use the <code class="option">-s ID</code> option to request minimal datasets containing the ID value instead of the citation key in the ID field.</p><div class="simplesect"><div class="titlepage"><div><div><h3 class="title"><a id="idp66642848"></a>Example</h3></div></div></div><p>To stick with the example of the fraudulent author, we assume his name is, as in so many examples, John Doe (apologies to all RefDB users with that name).</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>First we select all his publications from the database <code class="filename">bar</code>, request only the ID, and save the result in an intermediate file:</p><pre class="screen" width="60">
	    <code class="prompt">refdbc: </code>
	    <strong class="userinput"><code>getref -t ris -s ID -o tobekilled.ris -d bar ":AU:=Doe,J."</code></strong>
	  </pre><p>The result is, once again, a file with plain text that we can check and edit to our needs. E.g. if you want to keep one or two publications in the list, just delete their entries in the intermediate file.</p></li><li class="listitem"><p>Then we use the <a class="link" href="re11.html#app-c-command-deleteref" title="deleteref">deleteref</a> command to actually delete the references associated with our list of IDs:</p><pre class="screen" width="60">
	    <code class="prompt">refdbc: </code>
	    <strong class="userinput"><code>deleteref -f tobekilled.ris -d bar</code></strong>
	  </pre></li></ul></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch08s02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch08.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch08s04.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Find and view references </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Edit references</td></tr></table></div></body></html>