发布时间:2014-04-24 01:41:07
欲要了解getline,首先需要搞清楚$0,NR,FNR这几个概念。 所谓NR可以理解成Number of Record,或者说是行号,而FNR可以理解为Number of Record in File,或者成为文件内行号.听起来没啥区别。实际上如果你只有一个文件要awk处理,NR和FNR就是一回事,如下面所示,同一个文件bbs-list-3,对于每一.........【阅读全文】
vicacheung2013-07-11 10:09
{:2_175:}帮忙看看这个帖子(rsyslog采集的日志在mysql中为乱码 )吧,看您之前处理过类似的问题
http://bbs.chinaunix.net/thread-4090048-1-1.html
glune2011-12-09 15:14
编译安装gcc 每次配置环境都不成功 都没法编译 找不到问题。
[root@localhost gcc-3.4.6]# /opt/gcc-3.4.6/configure --prefix=/usr/local/gcc-3.4.6 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux--with-system-zlib --enable-languages=c,c++,java
loading cache ./config.cache
checking host system type... Invalid configuration `i386-redhat-linux--with-system-zlib': machine `i386-redhat-linux--with-system' not recognized
checking target system type... Invalid configuration `i386-redhat-linux--with-system-zlib': machine `i386-redhat-linux--with-system' not recognized
checking build system type... Invalid configuration `i386-redhat-linux--with-system-zlib': machine `i386-redhat-linux--with-system' not recognized
checking for a BSD compatible install... /usr/bin/install -c
*** This configuration is not supported in the following subdirectories:
target-libf2c target-libobjc
(Any other directories should still work fine.)
/opt/gcc-3.4.6/configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.