| Author |
any buitin time function mawk?
|
|
| Timoteo 2006-07-05, 7:56 am |
| I have read the mawk manual but i haven't find any mention about built time
function in mawk.
how do i manage 'time' from within mawk?
| |
| Harlan Grove 2006-07-05, 6:56 pm |
| Timoteo wrote...
>I have read the mawk manual but i haven't find any mention about built time
>function in mawk.
>how do i manage 'time' from within mawk?
You could add a time function to mawk's source code and build your own
extended binary. Or you could call the outside data command and pipe
its output through getline. There are no other alternatives if you use
mawk. If you want an awk variant with time functions, use gawk.
| |
| John DuBois 2006-07-05, 6:56 pm |
| In article <w9Oqg.12880$yg6.3444@tornado.fastwebnet.it>,
Timoteo <mpenn@tin.it> wrote:
>I have read the mawk manual but i haven't find any mention about built time
>function in mawk.
>how do i manage 'time' from within mawk?
As a side effect of the way it's implemented,
srand() returns the epoch time.
John
--
John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
|
|
|
|