On Mon, Jun 08, 2009 at 03:55:54PM +0200, Thomas Anderson wrote:

> Can anyone recommend a program/shell script/editor plugin etc, that
> can take arbitrary text as input and quote it like email programs
> quote emails with a preceding "> " character?

Given a file named SomeTextFile, you can do your own quick-and-dirty
like this:

   fmt --width=72 SomeTextFile | sed 's/^/\> /'

You can also use the clipboard selection with xclip:

    xclip -o | fmt -w 72 | sed 's/^/\> /'

This won't handle multiple quote levels or anything really complex, but
it should suffice for what you described.

-- 
"Oh, look: rocks!"
        -- Doctor Who, "Destiny of the Daleks"


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to