[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Program for quoting text like in email?



On Mon, Jun 8, 2009 at 9:55 AM, 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?
>
> I'm about to reply to a very long facebook message and want to quote
> it and make inline replies. But facebook only supports top-posting.
> I'd like to cut-n-paste the text I wish to reply, quote it with "> "
> and then cut-n-paste it back into my facebook reply message. I'd also
> like line breaks to be put in once every 80 characters (email
> standard?).

How about passing the text through fmt -w 80|sed 's/^/> //'?
(Untested). That should do what you desire, as fmt would format the
paragraphs, and sed would substitute every beginning of line with a ">
".

HTH.

Kumar
-- 
Kumar


Reply to: