提交 a965935c 编写于 作者: X xuwei06

Fix quick_start/preprocess.sh for dash

On Ubuntu, /bin/sh is dash. Change to POSIX syntax

ISSUE=4607487

git-svn-id: https://svn.baidu.com/idl/trunk/paddle@1455 1ad973e4-5ce8-4261-8a94-b56d1f490c56
上级 039180ae
......@@ -29,11 +29,11 @@ cat pos_*|sort|uniq|shuf> pos.shuffed
cat neg_*|sort|uniq|shuf> neg.shuffed
min_len=`sed -n '$=' neg.shuffed`
((test_num=$min_len/10))
test_num=$((min_len/10))
if [ $test_num -gt 12500 ];then
test_num=12500
fi
((train_num=$min_len-$test_num))
train_num=((min_len-test_num))
head -n$train_num pos.shuffed >train.pos
head -n$train_num neg.shuffed >train.neg
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册