[ale] multi-line echo?

Fletch fletch at phydeaux.org
Tue Nov 9 14:51:47 EST 2004


>>>>> "Keith" == Keith Morris <keith at iqtv.com> writes:

    Keith> Hey guys, I'm not terribly familiar with all of the command
    Keith> line tools available, but basically what I am looking for
    Keith> is a "multi-line" echo tool.

    Keith> I would like to be able to is be able to type in multiple
    Keith> lines then when "submitted" the text would be sent to
    Keith> stdout.

    Keith> Something like vi(m) would be fine if it could just "save"
    Keith> to stdout. can it?

Maybe . . .

#!/bin/sh

vi /tmp/multiline.$$
if test $? -eq 0 ; then
  cat /tmp/multiline.$$
fi

rm -f /tmp/multiline.$$

exit 0

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
                      |  scary questions." -- Jules                =(___)=
                      |                                               U



More information about the Ale mailing list