Hi,

you can first store the o/p of wc -l value in a variable.

say a = wc -l /tmp/file.

then b=`expr $a/2`

Thanks.