写了下面一小段,出错语句是: if [ $n -gt 4 ]; error message: [: too many arguments 真是不知道怎样改... ------------------------- for f in $gffFILEs do cd $PWD1 wc -l $f >>$PWD2/count n='wc -l $f' if [ $n -gt 4 ]; then cat $PWD1/$f > $PWD2/combined.gff fi done
w*n
4 楼
It's not that difficult to understand: There are always outstanding someone who can beat index, be it stock index or bond index. Boglehead's approach is for ordinary people. If you are extremely good and you know what you are doing, why would you want to buy index fund and diversify?
【在 t**********y 的大作中提到】 : 写了下面一小段,出错语句是: if [ $n -gt 4 ]; : error message: [: too many arguments : 真是不知道怎样改... : ------------------------- : for f in $gffFILEs : do : cd $PWD1 : wc -l $f >>$PWD2/count : n='wc -l $f' : if [ $n -gt 4 ];
w*n
7 楼
Or, in Peter Lynch's word, "diworsify"
【在 w***n 的大作中提到】 : It's not that difficult to understand: There are always outstanding someone : who can beat index, be it stock index or bond index. : Boglehead's approach is for ordinary people. If you are extremely good and : you know what you are doing, why would you want to buy index fund and : diversify?
k*s
8 楼
^^^^^^ change to : n=`cat $f | wc -l`
【在 t**********y 的大作中提到】 : 写了下面一小段,出错语句是: if [ $n -gt 4 ]; : error message: [: too many arguments : 真是不知道怎样改... : ------------------------- : for f in $gffFILEs : do : cd $PWD1 : wc -l $f >>$PWD2/count : n='wc -l $f' : if [ $n -gt 4 ];
S*C
9 楼
On equity side, especially US large caps, Cap-weighted indexing has sound footing, Other than that, not so much, especially in bond, small caps, and in places where it is not so transparent and you need local knowledge such as Asia.