i have prototyped a subset of the linux seq command in php ( ouch, yes. ). why?
i don't know how to do it in any shell-script. i have been reading
man-pages, searching google, but years later, i still can't do a thing
in them. maybe it is my blindspot. here it goes ( without the tags etc
// 2 pars: $1 = start $2 = end ( $0 is exe-path, right? )
if($argc == 2 + 1)
for($i=$argv; $i<=$argv; $i++)
// 3 pars: $1 = start $2 = step $3 = end
if($argc == 3 + 1)
for($i=$argv; $i<=$argv; $i+=$argv)
i would appreciate any implementations in csh, sh or bash or whatever.
maybe i will learn.
csh or sh would be the most interesting though. this code is trivial
to implement in C, that is not my problem.
email@example.com mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"