比如,我用split($0,a,'|') ,如何知道数组a最后被分成多少个元素,我目前的笨办法是: for (i in a) b++ print b 有没有更直接的方法?
solaris系统中获取cpu个数 /*Time-stamp: *author :yechao *file name :getcpunum.c *description:get the phsical cpu number in the system *compile :cc getcpunum.c *在SunOS 5.9 上成功编译并执行 */ #include//#include #include #include #include #include int main(int argc,char **argv) { int n_cpunum = 0; processorid_t i; processorid_t cpuid_max; cpuid_max = sysconf(_S...
file_a: 200501 07 13 15 200502 04 07 12 200503 01 16 06 file_b: 200501 04 05 07 10 17 13 200502 11 14 16 12 21 23 200503 10 08 06 01 15 13 文件a中 与文件b 每一行的时间是一一对应的。 求 同一时间,文件b中 包含 文件a中数据 的个数? 比如200501: file_a: 200501 07 13 15 file_b: ...
file_a: 200501 07 13 15 200502 04 07 12 200503 01 16 06 file_b: 200501 04 05 07 10 17 13 200502 11 14 16 12 21 23 200503 10 08 06 01 15 13 文件a中 与文件b 每一行的时间是一一对应的。 求 同一时间,文件b中 包含 文件a中数据 的个数? 比如200501: file_a: 200501 07 13 15 file_b: ...
IRCVVAR DS I B 1 40OBTRTN I B 5 80OBTVAL I 9 18 OJOBQ I 19 28 OLIB I 29 38 OOPCTL I 39 48 OAUCHK I ...
如何查看系统中cpu的个数? 如果用:lsattr -El proc0,lsattr -El proc1,lsattr -El proc2,.....是可以。 还有别的办法吗?