On Wed, Aug 07, 2002 at 02:27:39PM -0500, Kirk Strauser wrote: | I'm looking for an editor that can read data data from STDIN until it | receives an EOF, allow the user to edit it, then write the results back out | to STDOUT. In particular, I wish to decrypt a file with PGP, edit the | plaintext results, then encrypt the edited version - without using temporary | files. I can't think of any particularly elegant means of doing so with my | standard repertoire (vi, Emacs). Has anyone else already solved this | problem? echo "this is the text" | vim - <edit, edit> :!gpg --encrypt :|<program to send result to> :q! vim can read the data from stdin. Then it can pipe the buffer through a program and replace the buffer with the output (hence encrypting it). It can also merely pipe the buffer through a program (hence sending it where ever it was you wanted). HTH, -D -- Your mouse has moved. You must restart Windows for your changes to take effect. http://dman.ddts.net/~dman/
Attachment:
pgp9retEmL_Yr.pgp
Description: PGP signature