encrypting and replacing

Brian V Bonini b-bonini at cox.net
Mon Jan 19 10:08:21 CET 2004


On Mon, 2004-01-19 at 08:25, Micah Daniels wrote:
> Hi. I am looking for a gpg command and option that for exmaple, when a .txt
> file is encrypted and its encrypted .gpg file is written, the .txt should be
> auotmatically deleted from disk, i.e. the .txt file should be replaced  by
> the .gpg file.

$ gpg -ea -r UID file.txt && rm -f file.txt


-- 
Brian        GnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
                                          Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/attachments/20040119/034dc5e2/attachment.bin


More information about the Gnupg-users mailing list