分类: LINUX
2010-06-29 13:15:48
xiaosuo@gentux FreeBSD $ svn up 版本 209583。 xiaosuo@gentux FreeBSD $ find . -name "*.[hc]" | xargs wc -l ... 836324 总用量 ... localhost linux # git pull Already up-to-date. localhost linux # find . -name "*.[hc]" | xargs wc -l 19537 total |
|
xiaosuo@gentux FreeBSD $ ./line.pl 3956986 ... localhost linux # ./line.pl 11898857 |
xiaosuo@gentux FreeBSD $ find . -name "*.[hc]" | xargs wc -l | grep 总用量 3120662 总用量 836324 总用量 |
xiaosuo@gentux FreeBSD $ find . -name "*.[hc]" | xargs -L 1 wc -l | awk '{print $1}' | while read num; do total=$((total+num)); echo $total; done ... 3956986 |
localhost linux # find . -name "*.[hc]" | xargs ./a.pl 4708 3460 3730 3998 4110 3544 4157 1798 |
|
ARG_MAX - _SC_ARG_MAX The maximum length of the arguments to the exec(3) family of functions. Must not be less than _POSIX_ARG_MAX (4096). |
BUGS It is difficult to use ARG_MAX because it is not specified how much of the argument space for exec(3) is consumed by the user's environment variables. Some returned values may be huge; they are not suitable for allocating memory. |
GFree_Wind2011-05-12 22:00:51
以前遇到过参数过多结果导致了意想不到的问题。。。。大概问题好像是代码中查找要需要的参数,然后传递给命令。结果参数过多,直接导致命令失败。。