2006-10-10 14:09:23 +00:00
|
|
|
BEGIN {
|
|
|
|
print "ARGC=", ARGC;
|
2006-10-11 03:19:08 +00:00
|
|
|
for (i in ARGV)
|
|
|
|
{
|
|
|
|
print "ARGV[" i "]", ARGV[i];
|
|
|
|
}
|
2006-10-11 03:25:02 +00:00
|
|
|
|
|
|
|
print "----------------------";
|
|
|
|
print "ARGC=", ARGC;
|
|
|
|
split ("111 22 333 555 666 777", ARGV);
|
|
|
|
for (i in ARGV)
|
|
|
|
{
|
|
|
|
print "ARGV[" i "]", ARGV[i];
|
|
|
|
}
|
|
|
|
|
2006-10-12 04:17:58 +00:00
|
|
|
|
2006-10-15 15:46:14 +00:00
|
|
|
#for (i = 0
|
|
|
|
# i < 20
|
|
|
|
# i;;) print i;
|
|
|
|
|
|
|
|
|
2006-10-12 04:17:58 +00:00
|
|
|
if (ARGC >= 0) print "ARGC is positive";
|
2006-10-10 14:09:23 +00:00
|
|
|
}
|