复制内容到剪贴板
代码:
[root@localhost shell]# cat ./exam8
#!/bin/bash
ALLGROUPFILE_PATH=/root/ntestcopy
i=0
{
while read line
do
ALL_GROUP[i]=$line
let i=i+1
done
} < $ALLGROUPFILE_PATH
echo ${#ALL_GROUP[@]}
[root@localhost shell]# ./exam8
35
[root@localhost shell]# wc -l /root/ntestcopy
35 /root/ntestcopy
[root@localhost shell]#这样可以
-- Modified by dearvoid. Added
[code] ...
[/code].
[
本帖最后由 dearvoid 于 2007-10-14 12:42 编辑 ]