lua-users home
lua-l archive

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


On Tue, Jul 13, 2010 at 01:58, Alexander Gladysh <agladysh@gmail.com> wrote:
>>  sh. find "/etc" { name = "*rc", ctime="+30" } .l. sort "-n" .out

> To bring it all together: (Semi-sensical command line, sorry)

>  sh. gcc { o = file } (file..'.c") .I. grep 'error' .I. sort .out

Sorry for spamming, that's the last post until someone replies to the
thread, I promise :-)

Command output substitution:

    sh. find ( sh. jot "-r" (1) ) .out

Redirection

     sh. grep "foo" .inp "bar" .out "baz"

(Perhaps .i and .o? Note "in" is a keyword)

Alexander.