On Thu, 13 May 2010 17:24:47 +0400, erik quanstrom <quans...@quanstro.net>
wrote:
On Thu May 13 03:51:56 EDT 2010, santu...@gmail.com wrote:
Yes, I'm agree, but with one exception - awk(1) separates a data from a
code, hoc(1) doesn't do it. So hoc(1) can be used for plain calculation
tasks, not for processing input files with a data.
both awk and hoc accept standard input
Yes, but for hoc(1) it can be some program, for awk(1) it can be a data
only :-) - that is what I meant :-)
echo 1 2 | hoc -e '{while(read(x) != 0)y += x' ^ $nl ^ ' print y, "\n"}'
Maybe it makes a sense to add in hoc(1) expression delimiter like a ';'?
--
Best regards,
santucco