On Fri, Aug 24, 2012 at 3:47 PM, Mike Bean <span dir="ltr">&lt;<a href="mailto:beandaemon@gmail.com" target="_blank">beandaemon@gmail.com</a>&gt;</span> wrote:<div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Concerning gpg - is there an efficient way to remove the original after you encrypt?<br></blockquote></div><br>gnupg doesn&#39;t include functionality to manage files, including deleting them. It leaves that up to the OS. Your best bet would be to write a shell script. The alogrithm would be:</div>
<div><br></div><div><br></div><div>gpg --encrypt $1<br clear="all"><div>if successful</div><div>  delete $1  (either using rm or shred)</div><div>else if not successful</div><div>   echo &quot;$1 not successfuly encrypted, not deleting</div>
<div><br></div><div><br></div>-- <br>Michael Fierro                                      <a href="mailto:biffster@gmail.com" target="_blank">biffster@gmail.com</a><br>&quot;The truth of the matter is, I&#39;m a bright enough guy, but I&#39;m hardly a genius.&quot; - Cory Doctorow<br>

</div>