[ale] multi-line echo?

Jerald Sheets jsheets at yahoo.com
Tue Nov 9 14:54:28 EST 2004


Well....

How are you getting the text "in"?

If you're going to have a <STDOUT> method, you need a <STDIN> method as
well.

If you will be interactively typing in, I'd use a quick & dirty perl script
to gather your input   (  $input = <stdin> ) and then later, as you need it,
let perl output it.  ( print $input; )

If you are in the context of a script, and you have multiple lines coming
off <STDOUT>, you can pipe through the tee program which then sends your
text to both <STDOUT> and <STDERR>.  

Gimme a little more scenario, and I'd bet I can help you.


Jerald M. Sheets jr.
Sr. UNIX Systems Administrator
Datatrac, Inc
770.552.3866 x2494 
*****************
> su -
Password:
# cat /dev/flood > /dev/earth
# rdev noah+beasts
# dd if=noah+beasts of=/dev/earth

 

> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On 
> Behalf Of Keith Morris
> Sent: Tuesday, November 09, 2004 2:41 PM
> To: Atlanta Linux Enthusiasts List
> Subject: [ale] multi-line echo?
> 
> Hey guys, I'm not terribly familiar with all of the command 
> line tools 
> available, but basically what I am looking for is a 
> "multi-line" echo tool.
> 
> I would like to be able to is be able to type in multiple lines then 
> when "submitted" the text would be sent to stdout.
> 
> Something like vi(m) would be fine if it could just "save" to stdout. 
> can it?
> 
> Thanks much!
> 
> -- 
> :: Keith Morris
> :: Creative Director
> :: Design / Effects
> :: IQ television group
> :: Atlanta, GA
> :: 404.255.3550
> :: http://www.iqtv.com
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale



More information about the Ale mailing list