#%1 200001/01:00001:om oh tm:F:1
GAKKO_LIST =oh nm om
for GAKKO in $GAKKO_LIST
do
echo GAKKO is :$GAKKO
echo GAKKO_LIST is :$GAKKO_LIST
PARTERN_LIST=`echo $1 | sed 's/'$GAKKO_LIST'/'$GAKKO'/g'`
echo $PARTERN_LIST
done
这句
PARTERN_LIST=`echo $1 | sed 's/'$GAKKO_LIST'/'$GAKKO'/g'`
执行不了,很急!请哪位高手指点一下?先谢了。
想出来的效果
200001/01:00001:om:F:1
200001/01:00001:oh:F:1
200001/01:00001:tm:F:1
> PARTERN_LIST=`echo $1 | sed 's/'$GAKKO_LIST'/'$GAKKO'/g'`
换成
PARTERN_LIST=`echo $1 | sed "s/$GAKKO_LIST/$GAKKO/g" `